implemented Setup.hs to build boehm cpp libs and install them;
[hs-boehmgc.git] / gc-7.2 / include / gc_version.h
1 /*
2  * Copyright (c) 1994 by Xerox Corporation.  All rights reserved.
3  * Copyright (c) 1996 by Silicon Graphics.  All rights reserved.
4  * Copyright (c) 1998 by Fergus Henderson.  All rights reserved.
5  * Copyright (c) 2000-2009 by Hewlett-Packard Development Company.
6  * All rights reserved.
7  *
8  * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
9  * OR IMPLIED.  ANY USE IS AT YOUR OWN RISK.
10  *
11  * Permission is hereby granted to use or copy this program
12  * for any purpose,  provided the above notices are retained on all copies.
13  * Permission to modify the code and to distribute modified code is granted,
14  * provided the above notices are retained, and a notice that the code was
15  * modified is included with the above copyright notice.
16  */
17
18 /* This should never be included directly; it is included only from gc.h. */
19 #if defined(GC_H)
20
21 /* The version here should match that in configure/configure.ac */
22 /* Eventually this one may become unnecessary.  For now we need */
23 /* it to keep the old-style build process working.              */
24 #define GC_TMP_VERSION_MAJOR 7
25 #define GC_TMP_VERSION_MINOR 2
26 #define GC_TMP_ALPHA_VERSION GC_NOT_ALPHA
27
28 #ifndef GC_NOT_ALPHA
29 # define GC_NOT_ALPHA 0xff
30 #endif
31
32 #ifdef GC_VERSION_MAJOR
33 # if GC_TMP_VERSION_MAJOR != GC_VERSION_MAJOR \
34      || GC_TMP_VERSION_MINOR != GC_VERSION_MINOR \
35      || defined(GC_ALPHA_VERSION) != (GC_TMP_ALPHA_VERSION != GC_NOT_ALPHA) \
36      || (defined(GC_ALPHA_VERSION) && GC_TMP_ALPHA_VERSION != GC_ALPHA_VERSION)
37 #   error Inconsistent version info.  Check doc/README, include/gc_version.h, and configure.ac.
38 # endif
39 #else
40 # define GC_VERSION_MAJOR GC_TMP_VERSION_MAJOR
41 # define GC_VERSION_MINOR GC_TMP_VERSION_MINOR
42 # define GC_ALPHA_VERSION GC_TMP_ALPHA_VERSION
43 #endif /* !GC_VERSION_MAJOR */
44
45 #endif