Skip to content

Commit 77db01f

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

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

simplecpp.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212

1313
#include "simplecpp.h"
1414

15+
#if defined(_WIN32_WINNT)
16+
# define SIMPLECPP_WINDOWS
17+
#endif
18+
1519
#include <algorithm>
1620
#include <cassert>
1721
#include <cctype>

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)