summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2012-03-16 16:11:08 +0100
committerIvan Maidanski <ivmai@mail.ru>2012-03-19 08:17:26 +0100
commit0e8dd516d0f98abac6fba637ab32bb71ae21b9d5 (patch)
tree16c2e20861ee4d67940c02dc330f3dfe58bb3c86 /tests
parent1b072a7aeb4d43ef4a16f409f299e482f1637342 (diff)
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test.c b/tests/test.c
index 8d20479..4366369 100644
--- a/tests/test.c
+++ b/tests/test.c
@@ -96,6 +96,10 @@
# include <stdarg.h>
+#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) \