summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2015-04-05 18:59:45 +0300
committerIvan Maidanski <ivmai@mail.ru>2015-04-05 19:18:45 +0300
commit9eecf048cebe32f7b16ca2bb76a0bee986061b3d (patch)
tree6a678c7d400004101041cf8ef69d5cc8cad04507
parentf58f475bdcb9810010a44d4063d7e699f8a585d2 (diff)
downloadbdwgc-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.h10
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 */