| 1 | #ifndef example_h |
| 2 | #define example_h |
| 3 | |
| 4 | #if defined(_WIN32) || defined(__CYGWIN__) |
| 5 | # if defined(example_exe_EXPORTS) |
| 6 | # define EXAMPLE_EXPORT __declspec(dllexport) |
| 7 | # else |
| 8 | # define EXAMPLE_EXPORT __declspec(dllimport) |
| 9 | # endif |
| 10 | #else |
| 11 | # define EXAMPLE_EXPORT |
| 12 | #endif |
| 13 | |
| 14 | #ifdef __cplusplus |
| 15 | extern "C" { |
| 16 | #endif |
| 17 | |
| 18 | EXAMPLE_EXPORT int example_exe_function(void); |
| 19 | |
| 20 | #ifdef __cplusplus |
| 21 | } |
| 22 | #endif |
| 23 | |
| 24 | #endif |