1#ifndef __DECLSPEC_H__ 2#define __DECLSPEC_H__ 3 4#if defined(_WIN32) && !defined(STATICLIB) 5 #ifdef MINIUPNP_EXPORTS 6 #define LIBSPEC __declspec(dllexport) 7 #else 8 #define LIBSPEC __declspec(dllimport) 9 #endif 10#else 11 #define LIBSPEC 12#endif 13 14#endif 15 16