2009-11-21 11:00:57 -08:00
|
|
|
#ifndef __DECLSPEC_H__
|
|
|
|
#define __DECLSPEC_H__
|
|
|
|
|
|
|
|
#if defined(WIN32) && !defined(STATICLIB)
|
|
|
|
#ifdef MINIUPNP_EXPORTS
|
|
|
|
#define LIBSPEC __declspec(dllexport)
|
|
|
|
#else
|
2009-11-21 11:04:16 -08:00
|
|
|
// NOTE: with the cross compiler, even if we have -DSTATICLIB, for some odd reason it still does this
|
|
|
|
// #define LIBSPEC __declspec(dllimport) which is not what we want. So we hack the line like so.
|
|
|
|
#define LIBSPEC
|
2009-11-21 11:00:57 -08:00
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#define LIBSPEC
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|