AnsweredAssumed Answered

Version information for conditional compilation missing

Question asked by norbert.thoden on Aug 6, 2015
Latest reply on Aug 6, 2015 by LDanzinger-esristaff

Unfortunately there is no version information (Major: 10, Minor: 2, Patch 6 -> 10.2.6) available neither during compile time nor during runtime.

 

Example:

(taken vom qglobal - Qt5.4)

 

     #define QT_VERSION_STR   "5.4.1"
     //   QT_VERSION is (major << 16) + (minor << 8) + patch.

     #define QT_VERSION 0x050401

     //   can be used like #if (QT_VERSION >= QT_VERSION_CHECK(4, 4, 0))

     #define QT_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch))

 

How shall i make code compatible to 10.2.3, 10.2.5 and 10.2.6 keeping the api modification in mind.....

 

Thanks

Outcomes