From 01d2c1b9d2e14cb7492734346c224e764db483ed Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sun, 5 Apr 2015 18:59:45 +0300 Subject: [PATCH] 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. Conflicts: include/gc.h --- include/gc.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/gc.h b/include/gc.h index ada78ca0..abb097f0 100644 --- a/include/gc.h +++ b/include/gc.h @@ -28,14 +28,14 @@ * problems. */ -// 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 */ -- 2.40.0