From 8d8b47e69f6bd1cfbd8f94c8ffc30b0ad3f19fc0 Mon Sep 17 00:00:00 2001 From: fluffypony Date: Wed, 10 Sep 2014 20:01:30 +0200 Subject: more dynamic miniupnp fixes --- src/p2p/net_node.inl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/p2p') diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index c2b397419..626e227bc 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -42,8 +42,15 @@ #include "net/local_ip.h" #include "crypto/crypto.h" #include "storages/levin_abstract_invoke2.h" -#include "miniupnpc.h" -#include "upnpcommands.h" + +// We have to look for miniupnpc headers in different places, dependent on if its compiled or external +#ifdef UPNP_STATIC + #include + #include +#else + #include "miniupnpc.h" + #include "upnpcommands.h" +#endif #define NET_MAKE_IP(b1,b2,b3,b4) ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<<16)+((DWORD)(b3)<<8)+((DWORD)(b4)))) -- cgit v1.2.3