ua_config.h.in 883 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 MULTITHREADING
  5. #cmakedefine MSVC
  6. #cmakedefine WIN32
  7. /* Visibility */
  8. #ifdef MSVC
  9. #define INLINE __inline
  10. #else
  11. #define INLINE inline
  12. #endif
  13. #if defined(_WIN32) || defined(__CYGWIN__)
  14. #ifdef open62541_EXPORTS
  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