test cases/common/170 generator link whole/export.h
raw| 1 | #pragma once |
| 2 | |
| 3 | #if defined BUILDING_EMBEDDED |
| 4 | #define DLL_PUBLIC |
| 5 | #elif defined _WIN32 || defined __CYGWIN__ |
| 6 | #if defined BUILDING_DLL |
| 7 | #define DLL_PUBLIC __declspec(dllexport) |
| 8 | #else |
| 9 | #define DLL_PUBLIC __declspec(dllimport) |
| 10 | #endif |
| 11 | #else |
| 12 | #if defined __GNUC__ |
| 13 | #define DLL_PUBLIC __attribute__ ((visibility("default"))) |
| 14 | #else |
| 15 | #pragma message ("Compiler does not support symbol visibility.") |
| 16 | #define DLL_PUBLIC |
| 17 | #endif |
| 18 | #endif |