- added UPNP router auto-configure for Internet games (hurray)

This commit is contained in:
Mark Vejvoda
2010-12-21 05:07:10 +00:00
parent d1c1d27584
commit bc90aa7ce4
41 changed files with 4401 additions and 23 deletions

View File

@@ -0,0 +1,17 @@
#ifndef __DECLSPEC_H__
#define __DECLSPEC_H__
#if defined(WIN32) && !defined(STATICLIB)
#ifdef MINIUPNP_EXPORTS
#define LIBSPEC __declspec(dllexport)
#else
// 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
#endif
#else
#define LIBSPEC
#endif
#endif