ua_config.h.in 704 B

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