Просмотр исходного кода

pull out upnp as default

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1402 54d463be-8e91-2dee-dedb-b68131a5f0ec
amber 20 лет назад
Родитель
Сommit
624f5b09c1
1 измененных файлов с 12 добавлено и 11 удалено
  1. 12 11
      src/common/socket.c

+ 12 - 11
src/common/socket.c

@@ -45,18 +45,19 @@ time_t tick_;
 time_t stall_time_ = 60;
 int ip_rules = 1;
 
-#define UPNP
+// #define UPNP
+
 #ifdef UPNP
-	#if defined(CYGWIN) || defined(_WIN32)
-		DLL upnp_dll;
-		int (*upnp_init)();
-		int (*upnp_final)();
-		int (*firewall_addport)(char *desc, int port);
-		int (*upnp_addport)(char *desc, char *ip, int port);
-		extern char server_type[24];
-	#else
-		#error This doesnt work with non-Windows yet
-	#endif
+#if defined(CYGWIN) || defined(_WIN32)
+DLL upnp_dll;
+int (*upnp_init)();
+int (*upnp_final)();
+int (*firewall_addport)(char *desc, int port);
+int (*upnp_addport)(char *desc, char *ip, int port);
+extern char server_type[24];
+#else
+#error This doesnt work with non-Windows yet
+#endif
 #endif
 
 int rfifo_size = 65536;