ua_config.h.in 903 B

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