12 # define HWSD_VERSION_MAJOR 1
15 # define HWSD_VERSION_MINOR 1
18 # define HWSD_VERSION_PATCH 1
21 # define HWSD_VERSION_REVISION 0x878f4a8
24 # define HWSD_VERSION_ABI 2
27 # define HWSD_VERSION_GT( MAJOR, MINOR, PATCH ) \
28 ( (HWSD_VERSION_MAJOR>MAJOR) || \
29 (HWSD_VERSION_MAJOR==MAJOR && (HWSD_VERSION_MINOR>MINOR || \
30 (HWSD_VERSION_MINOR==MINOR && HWSD_VERSION_PATCH>PATCH))))
33 # define HWSD_VERSION_GE( MAJOR, MINOR, PATCH ) \
34 ( (HWSD_VERSION_MAJOR>MAJOR) || \
35 (HWSD_VERSION_MAJOR==MAJOR && (HWSD_VERSION_MINOR>MINOR || \
36 (HWSD_VERSION_MINOR==MINOR && HWSD_VERSION_PATCH>=PATCH))))
39 # define HWSD_VERSION_LT( MAJOR, MINOR, PATCH ) \
40 ( (HWSD_VERSION_MAJOR<MAJOR) || \
41 (HWSD_VERSION_MAJOR==MAJOR && (HWSD_VERSION_MINOR<MINOR || \
42 (HWSD_VERSION_MINOR==MINOR && HWSD_VERSION_PATCH<PATCH))))
45 # define HWSD_VERSION_LE( MAJOR, MINOR, PATCH ) \
46 ( (HWSD_VERSION_MAJOR<MAJOR) || \
47 (HWSD_VERSION_MAJOR==MAJOR && (HWSD_VERSION_MINOR<MINOR || \
48 (HWSD_VERSION_MINOR==MINOR && HWSD_VERSION_PATCH<=PATCH))))
55 static int getMajor();
58 static int getMinor();
61 static int getPatch();
64 static std::string getString();
67 static int getRevision();
73 static std::string getRevString();
85 return getMajor()==HWSD_VERSION_MAJOR &&
86 getMinor()==HWSD_VERSION_MINOR;
Defines export visibility macros for hwsd.
Information about the current hwsd version.
static bool check()
Runtime check for ABI compatibility.