ua_config.h.in 726 B

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