From f2d6e580f2a6c79e88d4882aa1c05aa9cf45e2f7 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 16 Mar 2012 19:11:08 +0400 Subject: [PATCH] Fix GC_ALPHA_VERSION comparison in gctest and tools files * tests/test.c (GC_ALPHA_VERSION): Define to GC_TMP_ALPHA_VERSION if not defined by gc_version.h. * tools/add_gc_prefix.c (GC_ALPHA_VERSION): Likewise. * tools/gcname.c (GC_ALPHA_VERSION): Likewise. --- tests/test.c | 4 ++++ tools/add_gc_prefix.c | 4 ++++ tools/gcname.c | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/tests/test.c b/tests/test.c index f96f2e0..5c302da 100644 --- a/tests/test.c +++ b/tests/test.c @@ -96,6 +96,10 @@ # include +#ifndef GC_ALPHA_VERSION +# define GC_ALPHA_VERSION GC_TMP_ALPHA_VERSION +#endif + #define CHECH_GCLIB_VERSION \ if (GC_get_version() != ((GC_VERSION_MAJOR<<16) \ | (GC_VERSION_MINOR<<8) \ diff --git a/tools/add_gc_prefix.c b/tools/add_gc_prefix.c index ddc9337..8369d68 100644 --- a/tools/add_gc_prefix.c +++ b/tools/add_gc_prefix.c @@ -1,6 +1,10 @@ # include # include +#ifndef GC_ALPHA_VERSION +# define GC_ALPHA_VERSION GC_TMP_ALPHA_VERSION +#endif + int main(int argc, char ** argv) { int i; diff --git a/tools/gcname.c b/tools/gcname.c index e8188ae..74be553 100644 --- a/tools/gcname.c +++ b/tools/gcname.c @@ -1,6 +1,10 @@ #include #include +#ifndef GC_ALPHA_VERSION +# define GC_ALPHA_VERSION GC_TMP_ALPHA_VERSION +#endif + int main(void) { if (GC_ALPHA_VERSION == GC_NOT_ALPHA) { -- 2.7.4