transmission 2.83
[tomato.git] / release / src-rt-6.x.4708 / router / transmission / third-party / miniupnp / declspec.h
blob77299693b295a2017005f29d0ab4c16a282c36fb
1 #ifndef DECLSPEC_H_INCLUDED
2 #define DECLSPEC_H_INCLUDED
4 #if defined(_WIN32) && !defined(STATICLIB)
5 /* for windows dll */
6 #ifdef MINIUPNP_EXPORTS
7 #define LIBSPEC __declspec(dllexport)
8 #else
9 #define LIBSPEC __declspec(dllimport)
10 #endif
11 #else
12 #if defined(__GNUC__) && __GNUC__ >= 4
13 /* fix dynlib for OS X 10.9.2 and Apple LLVM version 5.0 */
14 #define LIBSPEC __attribute__ ((visibility ("default")))
15 #else
16 #define LIBSPEC
17 #endif
18 #endif
20 #endif