diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2012-03-16 19:11:08 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2012-03-19 12:55:31 +0400 |
commit | f2d6e580f2a6c79e88d4882aa1c05aa9cf45e2f7 (patch) | |
tree | a4215e406acad0faaa09f631aa391464e541ffe8 /tools | |
parent | 8225857c226edfe75b79d6da41384d30a48cc7e2 (diff) | |
download | bdwgc-f2d6e580f2a6c79e88d4882aa1c05aa9cf45e2f7.tar.gz |
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.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/add_gc_prefix.c | 4 | ||||
-rw-r--r-- | tools/gcname.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tools/add_gc_prefix.c b/tools/add_gc_prefix.c index ddc93371..8369d689 100644 --- a/tools/add_gc_prefix.c +++ b/tools/add_gc_prefix.c @@ -1,6 +1,10 @@ # include <stdio.h> # include <gc.h> +#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 e8188ae2..74be553c 100644 --- a/tools/gcname.c +++ b/tools/gcname.c @@ -1,6 +1,10 @@ #include <stdio.h> #include <gc.h> +#ifndef GC_ALPHA_VERSION +# define GC_ALPHA_VERSION GC_TMP_ALPHA_VERSION +#endif + int main(void) { if (GC_ALPHA_VERSION == GC_NOT_ALPHA) { |