example.h 377 B

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