mbgtools-lx  4.2.8
mbgversion.h
Go to the documentation of this file.
1 
2 /**************************************************************************
3  *
4  * $Id: mbgversion.h 1.14 2019/03/18 08:54:36 martin REL_M $
5  *
6  * Copyright (c) Meinberg Funkuhren, Bad Pyrmont, Germany
7  *
8  * Description:
9  * Program version definitions for package mbgtools-lx.
10  *
11  * -----------------------------------------------------------------------
12  * $Log: mbgversion.h $
13  * Revision 1.14 2019/03/18 08:54:36 martin
14  * New version code 4.2.6.
15  * Revision 1.13 2019/03/11 16:05:00 martin
16  * New version code 4.2.4.
17  * Revision 1.12 2019/02/08 10:18:07 martin
18  * New version code 4.2.2.
19  * Changed current copyright year to 2019.
20  * Revision 1.11 2018/12/13 15:39:00 martin
21  * New version code 4.2.1.
22  * Revision 1.10 2018/08/07 13:15:33 martin
23  * Cleaned up version definitions.
24  * Revision 1.9 2018/06/25 15:53:14 martin
25  * New version code 4.2.0.
26  * Changed copyright year to 2018.
27  * Revision 1.8 2017/07/03 09:05:11 martin
28  * New version code 4.0.0.
29  * Revision 1.7 2017/01/31 13:04:21 martin
30  * Include words.h instead of mbg_tgt.h
31  * Revision 1.6 2017/01/27 12:05:34 martin
32  * Changed copyright year to 2017.
33  * New file format.
34  * Revision 1.5 2015/12/17 14:40:04 martin
35  * Changed copyright year to 2015.
36  * Revision 1.4 2014/01/06 11:08:10 martin
37  * Changed copyright year to 2014.
38  * Revision 1.3 2013/01/03 12:09:30 martin
39  * Changed copyright year to 2013.
40  * Revision 1.2 2012/01/17 10:10:54 martin
41  * Changed current copyright year to 2012.
42  * Revision 1.1 2011/07/08 11:38:32 martin
43  * Initial revision for pre-release.
44  *
45  **************************************************************************/
46 
47 #include <words.h> // also includes mbg_tgt.h
48 
49 // --------------------------------------------------------------------
50 // The following definitions have to be updated to reflect the
51 // copyright year, and the software version numbers.
52 // --------------------------------------------------------------------
53 
54 #define MBG_CURRENT_COPYRIGHT_YEAR 2019
55 
56 #define MBG_MAJOR_VERSION_CODE 4
57 #define MBG_MINOR_VERSION_CODE 2
58 #define MBG_MICRO_VERSION_CODE 6
59 
60 #if defined( MBG_TGT_WIN32 )
61  #define MBG_BUILD_VERSION_CODE 1
62 #endif
63 
64 
65 // --------------------------------------------------------------------
66 // The following definitions are derived from the definitions above.
67 // --------------------------------------------------------------------
68 
69 #define MBG_CURRENT_COPYRIGHT_YEAR_STR STRINGIFY( MBG_CURRENT_COPYRIGHT_YEAR )
70 
71 #define MBG_MAJOR_VERSION_STR STRINGIFY( MBG_MAJOR_VERSION_CODE )
72 #define MBG_MINOR_VERSION_STR STRINGIFY( MBG_MINOR_VERSION_CODE )
73 #define MBG_MICRO_VERSION_STR STRINGIFY( MBG_MICRO_VERSION_CODE )
74 
75 #if defined( MBG_BUILD_VERSION_CODE )
76  #define MBG_BUILD_VERSION_STR STRINGIFY( MBG_BUILD_VERSION_CODE )
77 #endif
78 
79 
80 #define MBG_MAIN_VERSION_CODE ( ( MBG_MAJOR_VERSION_CODE << 8 ) | MBG_MINOR_VERSION_CODE )
81 #define MBG_MAIN_VERSION_STR MBG_MAJOR_VERSION_STR "." MBG_MINOR_VERSION_STR
82 
83 #if defined( MBG_BUILD_VERSION_STR )
84  #define MBG_FULL_VERSION_STR MBG_MAIN_VERSION_STR "." MBG_MICRO_VERSION_STR "." MBG_BUILD_VERSION_STR
85 #else
86  #define MBG_FULL_VERSION_STR MBG_MAIN_VERSION_STR "." MBG_MICRO_VERSION_STR
87 #endif
88