mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 14:52:00 +00:00
- include Winsock2.h for windows
- add a __BSD__ define for all bsd platforms if it doesn't exist.
This commit is contained in:
parent
7b80773212
commit
70cd2ccfab
2 changed files with 5 additions and 1 deletions
|
@ -24,7 +24,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#include "../qcommon/qcommon.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
// #include <winsock.h>
|
||||
#include <Winsock2.h>
|
||||
#include <Ws2tcpip.h>
|
||||
#include <Wspiapi.h>
|
||||
|
||||
|
|
|
@ -175,6 +175,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#include <sys/types.h>
|
||||
#include <machine/endian.h>
|
||||
|
||||
#ifndef __BSD__
|
||||
#define __BSD__
|
||||
#endif
|
||||
|
||||
#if defined(__FreeBSD__)
|
||||
#define OS_STRING "freebsd"
|
||||
#elif defined(__OpenBSD__)
|
||||
|
|
Loading…
Reference in a new issue