mirror of
https://github.com/glest/glest-source.git
synced 2025-08-10 10:24:01 +02:00
- added UPNP router auto-configure for Internet games (hurray)
This commit is contained in:
17
source/shared_lib/include/platform/miniupnpc/declspec.h
Normal file
17
source/shared_lib/include/platform/miniupnpc/declspec.h
Normal 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
|
||||
|
Reference in New Issue
Block a user