ua_config.h.in 869 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* Buid options and configuration (set by cmake) */
  2. #define UA_ENCODING_AMOUNT ${UA_ENCODING_AMOUNT}
  3. #define UA_LOGLEVEL ${UA_LOGLEVEL}
  4. #cmakedefine UA_DEBUG
  5. #cmakedefine UA_MULTITHREADING
  6. /* Visibility */
  7. #ifdef _MSC_VER
  8. #define INLINE __inline
  9. #else
  10. #define INLINE inline
  11. #endif
  12. /* Function Export */
  13. #ifdef _WIN32
  14. #ifdef UA_DYNAMIC_LINKING
  15. #ifdef __GNUC__
  16. #define UA_EXPORT __attribute__ ((dllexport))
  17. #else
  18. #define UA_EXPORT __declspec(dllexport)
  19. #endif
  20. #else
  21. #ifndef STATIC_LINKING
  22. #ifdef __GNUC__
  23. #define UA_EXPORT __attribute__ ((dllimport))
  24. #else
  25. #define UA_EXPORT __declspec(dllimport)
  26. #endif
  27. #else
  28. #define UA_EXPORT
  29. #endif
  30. #endif
  31. #else
  32. #if __GNUC__ >= 4 || __clang__
  33. #define UA_EXPORT __attribute__ ((visibility ("default")))
  34. #else
  35. #define UA_EXPORT
  36. #endif
  37. #endif