summaryrefslogtreecommitdiff
path: root/osdep
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2015-12-21 13:14:48 -0800
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2015-12-21 13:14:48 -0800
commit24cc0904fa08e655030ea90e374ff24315f1029a (patch)
tree88317afe24aec3e4f7e2f0e9c21e126ab691b6ee /osdep
parentc8056452b838e162b13531886606557d76957c60 (diff)
downloadinfinitytier-24cc0904fa08e655030ea90e374ff24315f1029a.tar.gz
infinitytier-24cc0904fa08e655030ea90e374ff24315f1029a.zip
1.1.2 Windows build fixes, tweaks, etc.
Diffstat (limited to 'osdep')
-rw-r--r--osdep/PortMapper.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/osdep/PortMapper.cpp b/osdep/PortMapper.cpp
index 87c886c2..03e2648f 100644
--- a/osdep/PortMapper.cpp
+++ b/osdep/PortMapper.cpp
@@ -40,10 +40,14 @@
#include "OSUtils.hpp"
#include "PortMapper.hpp"
+// These must be defined to get rid of dynamic export stuff in libminiupnpc and libnatpmp
#ifdef __WINDOWS__
#ifndef MINIUPNP_STATICLIB
#define MINIUPNP_STATICLIB
#endif
+#ifndef STATICLIB
+#define STATICLIB
+#endif
#endif
#include "../ext/miniupnpc/miniupnpc.h"