SceneSwitcher/lib/utils/export-symbol-helper.hpp
Przemek Pawlas 01cf000cbe Refactor
* Minor style changes
* Move function definitions
* Split utility.hpp
* Enable include of export-symbol-helper.hpp in tests
2024-02-24 16:47:50 +01:00

24 lines
406 B
C++

#pragma once
#ifdef UNIT_TEST
#define EXPORT
#define ADVSS_EXPORT
#else
#ifdef _MSC_VER
#define EXPORT __declspec(dllexport)
#else
#define EXPORT __attribute__((visibility("default")))
#endif
// Helpers helper to enable exporting and importing custom Qt widget symbols
#ifdef ADVSS_EXPORT_SYMBOLS
#define ADVSS_EXPORT Q_DECL_EXPORT
#else
#define ADVSS_EXPORT Q_DECL_IMPORT
#endif
#endif // UNIT_TEST