implemented Setup.hs to build boehm cpp libs and install them;
[hs-boehmgc.git] / gc-7.2 / extra / gcname.c
1 #include <stdio.h>
2 #include <gc.h>
3
4 #ifndef GC_ALPHA_VERSION
5 # define GC_ALPHA_VERSION GC_TMP_ALPHA_VERSION
6 #endif
7
8 int main()
9 {
10     if (GC_ALPHA_VERSION == GC_NOT_ALPHA) {
11         printf("gc%d.%d", GC_VERSION_MAJOR, GC_VERSION_MINOR);
12     } else {
13         printf("gc%d.%dalpha%d", GC_VERSION_MAJOR,
14                                  GC_VERSION_MINOR, GC_ALPHA_VERSION);
15     }
16     return 0;
17 }