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