1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /* Buid options and configuration (set by cmake) */
- #define UA_ENCODING_AMOUNT ${UA_ENCODING_AMOUNT}
- #define UA_LOGLEVEL ${UA_LOGLEVEL}
- #cmakedefine UA_DEBUG
- #cmakedefine UA_MULTITHREADING
- /* Visibility */
- #ifdef _MSC_VER
- #define INLINE __inline
- #else
- #define INLINE inline
- #endif
- /* Function Export */
- #ifdef _WIN32
- # ifdef UA_DYNAMIC_LINKING
- # ifdef __GNUC__
- # define UA_EXPORT __attribute__ ((dllexport))
- # else
- # define UA_EXPORT __declspec(dllexport)
- # endif
- # else
- # ifndef STATIC_LINKING
- # ifdef __GNUC__
- # define UA_EXPORT __attribute__ ((dllimport))
- # else
- # define UA_EXPORT __declspec(dllimport)
- # endif
- # else
- # define UA_EXPORT
- # endif
- # endif
- #else
- # if __GNUC__ >= 4 || __clang__
- # define UA_EXPORT __attribute__ ((visibility ("default")))
- # else
- # define UA_EXPORT
- # endif
- #endif
|