05-13-2011 05:10 AM
05-13-2011 05:10 AM
05-13-2011 01:55 PM
Hi Guillaume,
As you've noticed, _CVI_ is not defined when you compile under Linux.
You're right, there is very little documentation on which of the CVI predefined macros are available in Linux. We'll be sure to add this to the documentation. In the meantime, these are the macros defined by cvicc, to the best of my knowledge:
_NI_unix_ = 1
_NI_linux_ = 1
_CVI_DEBUG_ = 1 (debug builds only)
NDEBUG = 1 (release builds only)
_CVI_C99_EXTENSIONS_ = 0 or 1 (depending on project option)
_TARGET_FILE_VERSION_ = a.b.c.d
_TARGET_PRODUCT_VERSION_ = a.b.c.d