40#ifndef INCLUDED_GLS_VERSION_H
41#define INCLUDED_GLS_VERSION_H
62#define GLS_VERSION_MAJOR 9
65#define GLS_VERSION_MINOR 0
68#define GLS_VERSION_BUILD 0000
71#define GLS_STRINGIZE( x ) #x
74#define GLS_STRINGIZE_VALUE( x ) GLS_STRINGIZE( x )
77#define GLS_VERSION_1( a, b ) GLS_STRINGIZE( a.b )
80#define GLS_VERSION GLS_VERSION_1( GLS_VERSION_MAJOR, GLS_VERSION_MINOR )
84#define GLS_LICENSE_VERSION GLS_VERSION_1( GLS_VERSION_MAJOR, 0 )
87#define GLS_BUILD_VERSION GLS_STRINGIZE_VALUE( GLS_VERSION_BUILD )
91# if !defined( GLS_COMPILER_VERSION )
93# pragma message( "Warning (gls_version.h): Unrecognized compiler version" )
94# define GLS_COMPILER_VERSION vcXX
96# define GLS_COMPILER_VERSION vc141
98# define GLS_COMPILER_VERSION vc142
100# define GLS_COMPILER_VERSION vc143
101# elif _MSC_VER < 1970
102# define GLS_COMPILER_VERSION vc145
104# pragma message( "Warning (gls_version.h): Unrecognized compiler version" )
105# define GLS_COMPILER_VERSION vcXX
114# define GLS_CRT_VERSION_INT_MD 0x06000000
115# define GLS_CRT_VERSION_INT_MT 0x02000000
116# define GLS_CRT_VERSION_INT_ML 0x01000000
117# define GLS_CRT_VERSION_INT_MDD 0x0E000000
118# define GLS_CRT_VERSION_INT_MTD 0x0A000000
119# define GLS_CRT_VERSION_INT_MLD 0x09000000
121# define GLS_CRT_VERSION_INT_MD_64 0x16000000
122# define GLS_CRT_VERSION_INT_MT_64 0x12000000
123# define GLS_CRT_VERSION_INT_ML_64 0x11000000
124# define GLS_CRT_VERSION_INT_MDD_64 0x1E000000
125# define GLS_CRT_VERSION_INT_MTD_64 0x1A000000
126# define GLS_CRT_VERSION_INT_MLD_64 0x19000000
128# if !defined( GLS_CRT_VERSION )
129# if defined( _DEBUG )
132# if defined( _WIN64 )
133# define GLS_CRT_VERSION _64mdd
134# define GLS_CRT_VERSION_INT GLS_CRT_VERSION_INT_MDD_64
136# define GLS_CRT_VERSION mdd
137# define GLS_CRT_VERSION_INT GLS_CRT_VERSION_INT_MDD
140# if defined( _WIN64 )
141# define GLS_CRT_VERSION _64mtd
142# define GLS_CRT_VERSION_INT GLS_CRT_VERSION_INT_MTD_64
144# define GLS_CRT_VERSION mtd
145# define GLS_CRT_VERSION_INT GLS_CRT_VERSION_INT_MTD
149# if defined( _WIN64 )
150# define GLS_CRT_VERSION _64mld
151# define GLS_CRT_VERSION_INT GLS_CRT_VERSION_INT_MLD_64
153# define GLS_CRT_VERSION mld
154# define GLS_CRT_VERSION_INT GLS_CRT_VERSION_INT_MLD
160# if defined( _WIN64 )
161# define GLS_CRT_VERSION _64md
162# define GLS_CRT_VERSION_INT GLS_CRT_VERSION_INT_MD_64
164# define GLS_CRT_VERSION md
165# define GLS_CRT_VERSION_INT GLS_CRT_VERSION_INT_MD
168# if defined( _WIN64 )
169# define GLS_CRT_VERSION _64mt
170# define GLS_CRT_VERSION_INT GLS_CRT_VERSION_INT_MT_64
172# define GLS_CRT_VERSION mt
173# define GLS_CRT_VERSION_INT GLS_CRT_VERSION_INT_MT
177# if defined( _WIN64 )
178# define GLS_CRT_VERSION _64ml
179# define GLS_CRT_VERSION_INT GLS_CRT_VERSION_INT_ML_64
181# define GLS_CRT_VERSION ml
182# define GLS_CRT_VERSION_INT GLS_CRT_VERSION_INT_ML
189# define GLS_CHECK_VERSION_ID_2( a, b, c, d, e ) GLS_VERSION_##a##_##b##_##c##_##d##_##e
192# define GLS_CHECK_VERSION_ID_1( v1, v2, v3, c1, c2 ) GLS_CHECK_VERSION_ID_2( v1, v2, v3, c1, c2 )
195# define GLS_CHECK_VERSION_ID GLS_CHECK_VERSION_ID_1( GLS_VERSION_MAJOR, GLS_VERSION_MINOR, GLS_VERSION_BUILD, GLS_COMPILER_VERSION, GLS_CRT_VERSION )
200# define GLS_CHECK_VERSION_ID_2( a, b, c ) GLS_VERSION_##a##_##b##_##c##_LIBRARY
203# define GLS_CHECK_VERSION_ID_1( v1, v2, v3 ) GLS_CHECK_VERSION_ID_2( v1, v2, v3 )
206# define GLS_CHECK_VERSION_ID GLS_CHECK_VERSION_ID_1( GLS_VERSION_MAJOR, GLS_VERSION_MINOR, GLS_VERSION_BUILD )
239#
if defined( _MSC_VER )
240 int compilerVersion = _MSC_VER + GLS_CRT_VERSION_INT )
241#elif defined( __GNUC__ )
242 int compilerVersion = __GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__ )
244 int compilerVersion = 0 )
271#if defined( __GNUC__ )
272 if( !compiler_compatible )
278 compiler_compatible =
true;
Definition: gls_version.h:223
GlsBuiltVersionInfo2(int glsMajor=9, int glsMinor=0, int glsBuild=0000, int compilerVersion=0)
Definition: gls_version.h:235
int _glsBuild
The build, and build minor runtime version.
Definition: gls_version.h:227
int _glsMinor
The minor runtime version.
Definition: gls_version.h:226
int _glsMajor
The major runtime version.
Definition: gls_version.h:225
int _compilerVersion
The compiler version.
Definition: gls_version.h:228
A file for all GL Studio files to include.
#define GLS_EXPORT
Macro denoting which functions should be visible from the runtime library.
Definition: gls_include.h:50
#define GLS_CHECK_VERSION_ID
The version check string, present as a symbol in the runtime library.
Definition: gls_version.h:206
#define GLS_VERSION_MINOR
The minor version of this runtime library build. i.e. 0.X.0000.
Definition: gls_version.h:65
#define GLS_VERSION_MAJOR
The major version of this runtime library build. i.e. X.0.0000.
Definition: gls_version.h:62
#define GLS_VERSION_BUILD
The build and build minor versions of this runtime library build. i.e. 0.0.XXXX.
Definition: gls_version.h:68
Definition: bmpimage.h:46
bool GlsBuiltVersionsMatchExactly(const GlsBuiltVersionInfo &a, const GlsBuiltVersionInfo &b)
Definition: gls_version.h:259
bool GlsBuiltVersionsAreBinaryCompatible(const GlsBuiltVersionInfo &a, const GlsBuiltVersionInfo &b)
Definition: gls_version.h:267
GlsBuiltVersionInfo2 GlsBuiltVersionInfo
Typedef for backward compatibilty purposes.
Definition: gls_version.h:254