diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-06-20 10:36:25 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-06-20 10:36:25 +0300 |
commit | 466976e79a437b9a6addaf0b9ffe2689e568ae79 (patch) | |
tree | 3d32972414a29f465e51673ef20d97c428da2d34 /gc_cpp.cc | |
parent | a4a6329e7ad44f125c6e8193532a6e731a628324 (diff) | |
download | bdwgc-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.cc | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |