example.h 385 B

12345678910111213141516171819202122232425
  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. {
  15. #endif
  16. EXAMPLE_EXPORT int example_exe_function(void);
  17. #ifdef __cplusplus
  18. }
  19. #endif
  20. #endif