mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 13:27:17 +01:00
UPNP support from windows
This commit is contained in:
parent
2f6898142e
commit
7ea5af448e
|
@ -32,6 +32,11 @@ ifeq ($(USE_WIN32_APP), yes)
|
||||||
DAEMON_OBJS += $(patsubst %.rc,obj/%.o,$(DAEMON_RC))
|
DAEMON_OBJS += $(patsubst %.rc,obj/%.o,$(DAEMON_RC))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# UPNP Support
|
||||||
|
ifeq ($(USE_UPNP),1)
|
||||||
|
CXXFLAGS += -DUSE_UPNP
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_AESNI),1)
|
ifeq ($(USE_AESNI),1)
|
||||||
CPU_FLAGS = -maes -DAESNI
|
CPU_FLAGS = -maes -DAESNI
|
||||||
else
|
else
|
||||||
|
|
2
UPnP.cpp
2
UPnP.cpp
|
@ -69,7 +69,7 @@ namespace transport
|
||||||
#ifdef MAC_OSX
|
#ifdef MAC_OSX
|
||||||
m_Module = dlopen ("libminiupnpc.dylib", RTLD_LAZY);
|
m_Module = dlopen ("libminiupnpc.dylib", RTLD_LAZY);
|
||||||
#elif _WIN32
|
#elif _WIN32
|
||||||
m_Module = LoadLibrary ("miniupnpc.dll"); // official prebuilt binary, e.g., in upnpc-exe-win32-20140422.zip
|
m_Module = LoadLibrary ("libminiupnpc.dll"); // from MSYS2
|
||||||
#else
|
#else
|
||||||
m_Module = dlopen ("libminiupnpc.so", RTLD_LAZY);
|
m_Module = dlopen ("libminiupnpc.so", RTLD_LAZY);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue