miniupnpc_declspec.h 560 B

12345678910111213141516171819202122
  1. #ifndef MINIUPNPC_DECLSPEC_H_INCLUDED
  2. #define MINIUPNPC_DECLSPEC_H_INCLUDED
  3. #if defined(_WIN32) && !defined(MINIUPNP_STATICLIB)
  4. /* for windows dll */
  5. #ifdef MINIUPNP_EXPORTS
  6. #define MINIUPNP_LIBSPEC __declspec(dllexport)
  7. #else
  8. #define MINIUPNP_LIBSPEC __declspec(dllimport)
  9. #endif
  10. #else
  11. #if defined(__GNUC__) && __GNUC__ >= 4
  12. /* fix dynlib for OS X 10.9.2 and Apple LLVM version 5.0 */
  13. #define MINIUPNP_LIBSPEC __attribute__ ((visibility ("default")))
  14. #else
  15. #define MINIUPNP_LIBSPEC
  16. #endif
  17. #endif
  18. #endif /* MINIUPNPC_DECLSPEC_H_INCLUDED */