From: Ivan Maidanski Date: Fri, 16 Mar 2012 15:11:08 +0000 (+0400) Subject: Fix GC_ALPHA_VERSION comparison in gctest and tools files X-Git-Tag: gc7_2~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e8dd516d0f98abac6fba637ab32bb71ae21b9d5;p=gc Fix GC_ALPHA_VERSION comparison in gctest and tools files (Apply commit 3b6bc1e from 'master' branch) * tests/test.c (GC_ALPHA_VERSION): Define to GC_TMP_ALPHA_VERSION if not defined by gc_version.h. * extra/add_gc_prefix.c (GC_ALPHA_VERSION): Likewise. * extra/gcname.c (GC_ALPHA_VERSION): Likewise. --- diff --git a/extra/add_gc_prefix.c b/extra/add_gc_prefix.c index a7fd4fc4..8646a8e1 100644 --- a/extra/add_gc_prefix.c +++ b/extra/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(argc, argv, envp) int argc; char ** argv; diff --git a/extra/gcname.c b/extra/gcname.c index 55b7c9fb..11cbeb16 100644 --- a/extra/gcname.c +++ b/extra/gcname.c @@ -1,6 +1,10 @@ #include #include +#ifndef GC_ALPHA_VERSION +# define GC_ALPHA_VERSION GC_TMP_ALPHA_VERSION +#endif + int main() { if (GC_ALPHA_VERSION == GC_NOT_ALPHA) { diff --git a/tests/test.c b/tests/test.c index 8d20479e..4366369d 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) \