ctkExport.h.in 805 B

123456789101112131415161718192021222324252627282930313233
  1. // .NAME __@MY_EXPORT_HEADER_PREFIX@Export - manage Windows system differences
  2. // .SECTION Description
  3. // The __@MY_EXPORT_HEADER_PREFIX@Export captures some system differences between Unix
  4. // and Windows operating systems.
  5. #ifndef __@MY_EXPORT_HEADER_PREFIX@Export_h
  6. #define __@MY_EXPORT_HEADER_PREFIX@Export_h
  7. #include "ctkCompilerDetections_p.h"
  8. #include <QtGlobal>
  9. #if defined(Q_OS_WIN) || defined(Q_OS_SYMBIAN)
  10. # if defined(@MY_LIBNAME@_EXPORTS)
  11. # define @MY_LIBRARY_EXPORT_DIRECTIVE@ Q_DECL_EXPORT
  12. # else
  13. # define @MY_LIBRARY_EXPORT_DIRECTIVE@ Q_DECL_IMPORT
  14. # endif
  15. #endif
  16. #if !defined(@MY_LIBRARY_EXPORT_DIRECTIVE@)
  17. //# if defined(CTK_SHARED)
  18. # define @MY_LIBRARY_EXPORT_DIRECTIVE@ Q_DECL_EXPORT
  19. //# else
  20. //# define @MY_LIBRARY_EXPORT_DIRECTIVE@
  21. //# endif
  22. #endif
  23. #endif