fancontrol_gui_lib_export.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef FANCONTROL_GUI_LIB_EXPORT_H
  2. #define FANCONTROL_GUI_LIB_EXPORT_H
  3. #ifdef FANCONTROL_GUI_LIB_STATIC_DEFINE
  4. # define FANCONTROL_GUI_LIB_EXPORT
  5. # define FANCONTROL_GUI_LIB_NO_EXPORT
  6. #else
  7. # ifndef FANCONTROL_GUI_LIB_EXPORT
  8. # ifdef fancontrol_gui_lib_EXPORTS
  9. /* We are building this library */
  10. # define FANCONTROL_GUI_LIB_EXPORT __attribute__((visibility("default")))
  11. # else
  12. /* We are using this library */
  13. # define FANCONTROL_GUI_LIB_EXPORT __attribute__((visibility("default")))
  14. # endif
  15. # endif
  16. # ifndef FANCONTROL_GUI_LIB_NO_EXPORT
  17. # define FANCONTROL_GUI_LIB_NO_EXPORT __attribute__((visibility("hidden")))
  18. # endif
  19. #endif
  20. #ifndef FANCONTROL_GUI_LIB_DEPRECATED
  21. # define FANCONTROL_GUI_LIB_DEPRECATED __attribute__ ((__deprecated__))
  22. #endif
  23. #ifndef FANCONTROL_GUI_LIB_DEPRECATED_EXPORT
  24. # define FANCONTROL_GUI_LIB_DEPRECATED_EXPORT FANCONTROL_GUI_LIB_EXPORT FANCONTROL_GUI_LIB_DEPRECATED
  25. #endif
  26. #ifndef FANCONTROL_GUI_LIB_DEPRECATED_NO_EXPORT
  27. # define FANCONTROL_GUI_LIB_DEPRECATED_NO_EXPORT FANCONTROL_GUI_LIB_NO_EXPORT FANCONTROL_GUI_LIB_DEPRECATED
  28. #endif
  29. #define DEFINE_NO_DEPRECATED 0
  30. #if DEFINE_NO_DEPRECATED
  31. # define FANCONTROL_GUI_LIB_NO_DEPRECATED
  32. #endif
  33. #endif