summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2012-09-04 17:43:12 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-09-05 07:42:46 (GMT)
commit3aaaa44b69e18140533f3b0ef015364c609a5e38 (patch)
tree07d81278563ccbdd91df63b6dcc6d956343d4578 /3rdParty/LibMiniUPnPc/src/miniupnpc/minissdpc.c
parentb434b1c4f17e29afc5ec09c2918fcf8e9dc87563 (diff)
downloadswift-contrib-3aaaa44b69e18140533f3b0ef015364c609a5e38.zip
swift-contrib-3aaaa44b69e18140533f3b0ef015364c609a5e38.tar.bz2
Fix compilation of libminiupnpc for VS 2008.
License: This patch is BSD-licensed, see http://www.opensource.org/licenses/bsd-license.php
Diffstat (limited to '3rdParty/LibMiniUPnPc/src/miniupnpc/minissdpc.c')
-rw-r--r--3rdParty/LibMiniUPnPc/src/miniupnpc/minissdpc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/3rdParty/LibMiniUPnPc/src/miniupnpc/minissdpc.c b/3rdParty/LibMiniUPnPc/src/miniupnpc/minissdpc.c
index e61c1cd..a92c009 100644
--- a/3rdParty/LibMiniUPnPc/src/miniupnpc/minissdpc.c
+++ b/3rdParty/LibMiniUPnPc/src/miniupnpc/minissdpc.c
@@ -22,7 +22,12 @@
#include <ws2tcpip.h>
#include <io.h>
#include <winsock.h>
+#if _MSC_VER >= 1600
#include <stdint.h>
+#else
+typedef __int16 int16_t;
+typedef unsigned __int16 uint16_t;
+#endif
#endif
#if defined(__amigaos__) || defined(__amigaos4__)
#include <sys/socket.h>