Files
chinook/examples/dynlib/include/print/print.hpp
T
2026-06-25 02:45:43 +00:00

12 lines
357 B
C++

#if defined(_WIN32) && defined(_PRINT_BUILD_DLL)
# define PRINTAPI __declspec(dllexport)
#elif defined(_WIN32) && defined(PRINT_DLL)
# define PRINTAPI __declspec(dllimport)
#elif defined(__GNUC__) && defined(_PRINT_BUILD_DLL)
# define PRINTAPI __attribute__((visibility("default")))
#else
# define PRINTAPI
#endif
PRINTAPI void print(const char* msg);