r1292 - trunk/code/qcommon
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Apr 5 10:28:57 EDT 2008
Author: thilo
Date: 2008-04-05 10:28:57 -0400 (Sat, 05 Apr 2008)
New Revision: 1292
Modified:
trunk/code/qcommon/net_ip.c
trunk/code/qcommon/q_platform.h
Log:
- include Winsock2.h for windows
- add a __BSD__ define for all bsd platforms if it doesn't exist.
Modified: trunk/code/qcommon/net_ip.c
===================================================================
--- trunk/code/qcommon/net_ip.c 2008-04-05 13:18:09 UTC (rev 1291)
+++ trunk/code/qcommon/net_ip.c 2008-04-05 14:28:57 UTC (rev 1292)
@@ -24,7 +24,7 @@
#include "../qcommon/qcommon.h"
#ifdef _WIN32
-// #include <winsock.h>
+#include <Winsock2.h>
#include <Ws2tcpip.h>
#include <Wspiapi.h>
Modified: trunk/code/qcommon/q_platform.h
===================================================================
--- trunk/code/qcommon/q_platform.h 2008-04-05 13:18:09 UTC (rev 1291)
+++ trunk/code/qcommon/q_platform.h 2008-04-05 14:28:57 UTC (rev 1292)
@@ -175,6 +175,10 @@
#include <sys/types.h>
#include <machine/endian.h>
+#ifndef __BSD__
+ #define __BSD__
+#endif
+
#if defined(__FreeBSD__)
#define OS_STRING "freebsd"
#elif defined(__OpenBSD__)
More information about the quake3-commits
mailing list