diff options
author | Miguel de Icaza <miguel@gnome.org> | 2004-11-11 05:30:00 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2004-11-11 05:30:00 +0300 |
commit | 3cca3c82b8e7554f4f5c13a34e4e42949c9053da (patch) | |
tree | c487436df7cc0b6c00a89e5e0b68e2c4e642a0ef /libgc/version.h | |
parent | 5dc2037ab1a06f92df5f26eb305cde5e3ecb76a1 (diff) |
Add libgc to mono
svn path=/trunk/mono/; revision=35994
Diffstat (limited to 'libgc/version.h')
-rw-r--r-- | libgc/version.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libgc/version.h b/libgc/version.h new file mode 100644 index 00000000000..e8f1a3ab9eb --- /dev/null +++ b/libgc/version.h @@ -0,0 +1,30 @@ +/* The version here should match that in configure/configure.in */ +/* Eventually this one may become unnecessary. For now we need */ +/* it to keep the old-style build process working. */ +#define GC_TMP_VERSION_MAJOR 6 +#define GC_TMP_VERSION_MINOR 3 +#define GC_TMP_ALPHA_VERSION 6 + +#ifndef GC_NOT_ALPHA +# define GC_NOT_ALPHA 0xff +#endif + +#if defined(GC_VERSION_MAJOR) +# if GC_TMP_VERSION_MAJOR != GC_VERSION_MAJOR || \ + GC_TMP_VERSION_MINOR != GC_VERSION_MINOR || \ + defined(GC_ALPHA_VERSION) != (GC_TMP_ALPHA_VERSION != GC_NOT_ALPHA) || \ + defined(GC_ALPHA_VERSION) && GC_TMP_ALPHA_VERSION != GC_ALPHA_VERSION +# error Inconsistent version info. Check README, version.h, and configure.in. +# endif +#else +# define GC_VERSION_MAJOR GC_TMP_VERSION_MAJOR +# define GC_VERSION_MINOR GC_TMP_VERSION_MINOR +# define GC_ALPHA_VERSION GC_TMP_ALPHA_VERSION +#endif + + +#ifndef GC_NO_VERSION_VAR + +unsigned GC_version = ((GC_VERSION_MAJOR << 16) | (GC_VERSION_MINOR << 8) | GC_TMP_ALPHA_VERSION); + +#endif /* GC_NO_VERSION_VAR */ |