Skip to content

Commit fba4909

Browse files
authored
fixed #562 - avoid potential redefinition of Windows-specific macros (#563)
1 parent 4138924 commit fba4909

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

simplecpp.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@
77
# ifndef _WIN32_WINNT
88
# define _WIN32_WINNT 0x0602
99
# endif
10-
# define NOMINMAX
11-
# define WIN32_LEAN_AND_MEAN
10+
# ifndef NOMINMAX
11+
# define NOMINMAX
12+
# endif
13+
# ifndef WIN32_LEAN_AND_MEAN
14+
# define WIN32_LEAN_AND_MEAN
15+
# endif
1216
# include <windows.h>
1317
# undef ERROR
1418
#endif

0 commit comments

Comments
 (0)