2015-07-21 10:39:40 +00:00
|
|
|
#ifndef MINIUPNPC_DECLSPEC_H_INCLUDED
|
|
|
|
#define MINIUPNPC_DECLSPEC_H_INCLUDED
|
2011-09-27 20:25:35 +00:00
|
|
|
|
2014-06-01 10:22:35 +00:00
|
|
|
#if defined(_WIN32) && !defined(MINIUPNP_STATICLIB)
|
2014-03-14 08:21:11 +00:00
|
|
|
/* for windows dll */
|
2011-09-27 20:25:35 +00:00
|
|
|
#ifdef MINIUPNP_EXPORTS
|
2014-06-01 10:35:13 +00:00
|
|
|
#define MINIUPNP_LIBSPEC __declspec(dllexport)
|
2011-09-27 20:25:35 +00:00
|
|
|
#else
|
2014-06-01 10:35:13 +00:00
|
|
|
#define MINIUPNP_LIBSPEC __declspec(dllimport)
|
2011-09-27 20:25:35 +00:00
|
|
|
#endif
|
|
|
|
#else
|
2014-03-14 08:21:11 +00:00
|
|
|
#if defined(__GNUC__) && __GNUC__ >= 4
|
|
|
|
/* fix dynlib for OS X 10.9.2 and Apple LLVM version 5.0 */
|
2014-06-01 10:35:13 +00:00
|
|
|
#define MINIUPNP_LIBSPEC __attribute__ ((visibility ("default")))
|
2014-03-14 08:21:11 +00:00
|
|
|
#else
|
2014-06-01 10:35:13 +00:00
|
|
|
#define MINIUPNP_LIBSPEC
|
2014-03-14 08:21:11 +00:00
|
|
|
#endif
|
2011-09-27 20:25:35 +00:00
|
|
|
#endif
|
|
|
|
|
2015-07-21 10:39:40 +00:00
|
|
|
#endif /* MINIUPNPC_DECLSPEC_H_INCLUDED */
|
2011-09-27 20:25:35 +00:00
|
|
|
|