Files
chinook/examples/dynlib/include/print/print.hpp
T

12 lines
357 B
C++
Raw Normal View History

2026-06-25 02:45:43 +00:00
#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);