Skip to content

Commit 1cb3cbb

Browse files
committed
simplecpp.h: prevent internal defines from spilling
1 parent 37fa4f4 commit 1cb3cbb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

simplecpp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55

66
#if defined(_WIN32) || defined(__CYGWIN__) || defined(__MINGW32__)
7+
# define SIMPLECPP_WINDOWS
78
# define _WIN32_WINNT 0x0602
89
# define NOMINMAX
910
# include <windows.h>

simplecpp.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,4 +567,7 @@ namespace simplecpp {
567567
# pragma warning(pop)
568568
#endif
569569

570+
#undef SIMPLECPP_LIB
571+
#undef SIMPLECPP_WINDOWS
572+
570573
#endif

0 commit comments

Comments
 (0)