v2 / thirdparty / libgc / include / gc / gc_version.h
55 lines · 50 sloc · 2.06 KB · a4b7f7369d5359a002beced36c1e6644403220e7
Raw
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/*
19 * This should never be included directly; it is included only from
20 * `gc.h` file.
21 */
22#if defined(GC_H)
23
24/*
25 * The policy regarding version numbers: development code has odd
26 * `minor` number (and `micro` part is 0); when development is finished
27 * and a release is prepared, `minor` number is incremented (keeping
28 * `micro` number still zero), whenever a defect is fixed a new release
29 * is prepared incrementing `micro` part to odd value (the most stable
30 * release has the biggest `micro` number).
31 */
32
33/*
34 * The version here should match that in files `CMakeLists.txt`,
35 * `build.zig.zon` and `configure.ac`. Eventually this one may become
36 * unnecessary. For now we need it to keep the old-style build process
37 * working.
38 */
39# define GC_TMP_VERSION_MAJOR 8
40# define GC_TMP_VERSION_MINOR 3
41# define GC_TMP_VERSION_MICRO 0 /*< 8.3.0 */
42
43# ifdef GC_VERSION_MAJOR
44# if GC_TMP_VERSION_MAJOR != GC_VERSION_MAJOR \
45 || GC_TMP_VERSION_MINOR != GC_VERSION_MINOR \
46 || GC_TMP_VERSION_MICRO != GC_VERSION_MICRO
47# error Inconsistent version info. Check README.md, include/gc_version.h and configure.ac.
48# endif
49# else
50# define GC_VERSION_MAJOR GC_TMP_VERSION_MAJOR
51# define GC_VERSION_MINOR GC_TMP_VERSION_MINOR
52# define GC_VERSION_MICRO GC_TMP_VERSION_MICRO
53# endif /* !GC_VERSION_MAJOR */
54
55#endif
56