Skip to content

Commit c07f4a3

Browse files
committed
Protect some header defines from redefining
1 parent d828027 commit c07f4a3

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/sass.hpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,17 @@
1414
// aplies to MSVC and MinGW
1515
#ifdef _WIN32
1616
// we do not want the ERROR macro
17-
# define NOGDI
17+
# ifndef NOGDI
18+
# define NOGDI
19+
# endif
1820
// we do not want the min/max macro
19-
# define NOMINMAX
21+
# ifndef NOMINMAX
22+
# define NOMINMAX
23+
# endif
2024
// we do not want the IN/OUT macro
21-
# define _NO_W32_PSEUDO_MODIFIERS
25+
# ifndef _NO_W32_PSEUDO_MODIFIERS
26+
# define _NO_W32_PSEUDO_MODIFIERS
27+
# endif
2228
#endif
2329

2430

0 commit comments

Comments
 (0)