summaryrefslogtreecommitdiff
path: root/gc_cpp.cc
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-06-20 10:36:25 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-06-20 10:36:25 +0300
commit466976e79a437b9a6addaf0b9ffe2689e568ae79 (patch)
tree3d32972414a29f465e51673ef20d97c428da2d34 /gc_cpp.cc
parenta4a6329e7ad44f125c6e8193532a6e731a628324 (diff)
downloadbdwgc-466976e79a437b9a6addaf0b9ffe2689e568ae79.tar.gz
Do not include windows.h when compiling gc_cpp.cc
(code refactoring) * gc_cpp.cc (GC_DONT_INCL_WINDOWS_H): Define macro before include gc.h. * tests/test_cpp.cc (GC_DONT_INCL_WINDOWS_H): Likewise. * include/gc.h [GC_WIN32_THREADS && (!GC_PTHREADS || GC_BUILD || GC_WINDOWS_H_INCLUDED) && (!GC_NO_THREAD_DECLS || GC_BUILD)]: If GC_DONT_INCL_WINDOWS_H then do not include process.h, windows.h, and do not declare GC_CreateThread, GC_ExitThread, GC_DllMain, GC_beginthreadex, GC_endthreadex.
Diffstat (limited to 'gc_cpp.cc')
-rw-r--r--gc_cpp.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gc_cpp.cc b/gc_cpp.cc
index 88ffe96e..baf8ca49 100644
--- a/gc_cpp.cc
+++ b/gc_cpp.cc
@@ -27,6 +27,7 @@ built-in "new" and "delete".
# define GC_BUILD
#endif
+#define GC_DONT_INCL_WINDOWS_H
#include "gc.h"
#include <new> // for bad_alloc, precedes include of gc_cpp.h