diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2015-04-05 18:59:45 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2015-04-05 19:18:45 +0300 |
commit | 9eecf048cebe32f7b16ca2bb76a0bee986061b3d (patch) | |
tree | 6a678c7d400004101041cf8ef69d5cc8cad04507 | |
parent | f58f475bdcb9810010a44d4063d7e699f8a585d2 (diff) | |
download | bdwgc-9eecf048cebe32f7b16ca2bb76a0bee986061b3d.tar.gz |
Do not pass VC-specific 'pragma message' in gc.h to other compilers (Win64)
* include/gc.h: Pass pragma message (to identify missing predefined
symbols for Win64) only if _MSC_VER (as it is specific to VC); report
the message only on first gc.h inclusion; adjust related comment.
-rw-r--r-- | include/gc.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/gc.h b/include/gc.h index 2fb351d7..a846f186 100644 --- a/include/gc.h +++ b/include/gc.h @@ -38,14 +38,14 @@ // to be a bit more gc-aware #define ATOMIC_UNCOLLECTABLE -// help debug mixed up preproc symbols -#if (defined(WIN64) && !defined(_WIN64)) -#pragma message("Warning: Expecting _WIN64 for x64 targets! Notice the leading underscore!") -#endif - #ifndef GC_H #define GC_H +/* Help debug mixed up preprocessor symbols. */ +#if (defined(WIN64) && !defined(_WIN64)) && defined(_MSC_VER) +#pragma message("Warning: Expecting _WIN64 for x64 targets! Notice the leading underscore!") +#endif + #include "gc_version.h" /* Define version numbers here to allow test on build machine */ /* for cross-builds. Note that this defines the header */ |