OpenCBM
version.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version
5  * 2 of the License, or (at your option) any later version.
6  *
7  * Copyright 2004-2014 Spiro Trikaliotis
8  */
9 
18 #ifndef OPENCBM_VERSION_H
19 #define OPENCBM_VERSION_H
20 
21 #define OPENCBM_VERSION_MAJOR 0
22 #define OPENCBM_VERSION_MINOR 4
23 #define OPENCBM_VERSION_SUBMINOR 99
24 #define OPENCBM_VERSION_PATCHLEVEL 0
25 #define OPENCBM_VERSION_DEVEL 99
26 
27 #define OPENCBM_BUILD_VERSION_HELP( _a ) #_a
28 #define OPENCBM_BUILD_VERSION_STRING_PART( _a ) OPENCBM_BUILD_VERSION_HELP(_a)
29 #define OPENCBM_BUILD_VERSION_STRING_RELEASE(_a, _b, _c) OPENCBM_BUILD_VERSION_HELP(_a) "." OPENCBM_BUILD_VERSION_HELP(_b) "." OPENCBM_BUILD_VERSION_HELP(_c)
30 
31 #if OPENCBM_VERSION_DEVEL == 0
32 #define OPENCBM_VERSION_STRING OPENCBM_BUILD_VERSION_STRING_RELEASE(OPENCBM_VERSION_MAJOR, OPENCBM_VERSION_MINOR, OPENCBM_VERSION_SUBMINOR)
33 #elif OPENCBM_VERSION_PATCHLEVEL == 0
34 #define OPENCBM_VERSION_STRING OPENCBM_BUILD_VERSION_STRING_RELEASE(OPENCBM_VERSION_MAJOR, OPENCBM_VERSION_MINOR, OPENCBM_VERSION_SUBMINOR) "." OPENCBM_BUILD_VERSION_STRING_PART( OPENCBM_VERSION_DEVEL)
35 #else
36 #define OPENCBM_VERSION_STRING OPENCBM_BUILD_VERSION_STRING_RELEASE(OPENCBM_VERSION_MAJOR, OPENCBM_VERSION_MINOR, OPENCBM_VERSION_SUBMINOR) "." OPENCBM_BUILD_VERSION_STRING_PART( OPENCBM_VERSION_DEVEL) "pl" OPENCBM_BUILD_VERSION_STRING_PART(OPENCBM_VERSION_PATCHLEVEL)
37 #endif
38 
39 // for mnib36 compilation (old names):
40 //
41 #define CBM4WIN_VERSION_MAJOR OPENCBM_VERSION_MAJOR
42 #define CBM4WIN_VERSION_MINOR OPENCBM_VERSION_MINOR
43 #define CBM4WIN_VERSION_SUBMINOR OPENCBM_VERSION_SUBMINOR
44 #define CBM4WIN_VERSION_DEVEL OPENCBM_VERSION_DEVEL
45 #define CBM4WIN_VERSION_STRING OPENCBM_VERSION_STRING
46 
47 #endif /* #ifndef OPENCBM_VERSION_H */