* Move MINSDL_ values to sys_local.h from Makefile/VC project
* Merge *BSD platform definitions in q_platform.h * IRIX support (Patrick Baggett <baggett.patrick@figglesoftware.com>)
This commit is contained in:
parent
6bd4bb16a0
commit
eaeed742c5
6 changed files with 44 additions and 64 deletions
|
@ -50,6 +50,7 @@ static qboolean winsockInitialized = qfalse;
|
|||
#include <sys/ioctl.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifdef MACOS_X
|
||||
|
|
|
@ -19,7 +19,7 @@ along with Quake III Arena source code; if not, write to the Free Software
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
===========================================================================
|
||||
*/
|
||||
//
|
||||
|
||||
#ifndef __Q_PLATFORM_H
|
||||
#define __Q_PLATFORM_H
|
||||
|
||||
|
@ -168,14 +168,21 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
#endif
|
||||
|
||||
//=============================================================== FreeBSD ===
|
||||
//=================================================================== BSD ===
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <machine/endian.h>
|
||||
|
||||
#if defined(__FreeBSD__)
|
||||
#define OS_STRING "freebsd"
|
||||
#elif defined(__OpenBSD__)
|
||||
#define OS_STRING "openbsd"
|
||||
#elif defined(__NetBSD__)
|
||||
#define OS_STRING "netbsd"
|
||||
#endif
|
||||
|
||||
#define ID_INLINE inline
|
||||
#define PATH_SEP '/'
|
||||
|
||||
|
@ -195,58 +202,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
#endif
|
||||
|
||||
//=============================================================== OpenBSD ===
|
||||
|
||||
#ifdef __OpenBSD__
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <machine/endian.h>
|
||||
|
||||
#define OS_STRING "openbsd"
|
||||
#define ID_INLINE inline
|
||||
#define PATH_SEP '/'
|
||||
|
||||
#ifdef __i386__
|
||||
#define ARCH_STRING "i386"
|
||||
#endif
|
||||
|
||||
#if BYTE_ORDER == BIG_ENDIAN
|
||||
#define Q3_BIG_ENDIAN
|
||||
#else
|
||||
#define Q3_LITTLE_ENDIAN
|
||||
#endif
|
||||
|
||||
#define DLL_EXT ".so"
|
||||
|
||||
#endif
|
||||
|
||||
//================================================================ NetBSD ===
|
||||
|
||||
// This is very much like the FreeBSD one and can probably be merged
|
||||
#ifdef __NetBSD__
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <machine/endian.h>
|
||||
|
||||
#define OS_STRING "netbsd"
|
||||
#define ID_INLINE inline
|
||||
#define PATH_SEP '/'
|
||||
|
||||
#ifdef __i386__
|
||||
#define ARCH_STRING "i386"
|
||||
// Netbsd has alot of platforms
|
||||
#endif
|
||||
|
||||
#if BYTE_ORDER == BIG_ENDIAN
|
||||
#define Q3_BIG_ENDIAN
|
||||
#else
|
||||
#define Q3_LITTLE_ENDIAN
|
||||
#endif
|
||||
|
||||
#define DLL_EXT ".so"
|
||||
|
||||
#endif
|
||||
|
||||
//================================================================= SUNOS ===
|
||||
|
||||
#ifdef __sun
|
||||
|
@ -274,6 +229,22 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
#endif
|
||||
|
||||
//================================================================== IRIX ===
|
||||
|
||||
#ifdef __sgi
|
||||
|
||||
#define OS_STRING "irix"
|
||||
#define ID_INLINE __inline
|
||||
#define PATH_SEP '/'
|
||||
|
||||
#define ARCH_STRING "mips"
|
||||
|
||||
#define Q3_BIG_ENDIAN // SGI's MIPS are always big endian
|
||||
|
||||
#define DLL_EXT ".so"
|
||||
|
||||
#endif
|
||||
|
||||
//================================================================== Q3VM ===
|
||||
|
||||
#ifdef Q3_VM
|
||||
|
|
|
@ -27,6 +27,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#include <signal.h>
|
||||
#include <termios.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
/*
|
||||
=============================================================
|
||||
|
|
|
@ -23,6 +23,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#include "../qcommon/q_shared.h"
|
||||
#include "../qcommon/qcommon.h"
|
||||
|
||||
// Require a minimum version of SDL
|
||||
#define MINSDL_MAJOR 1
|
||||
#define MINSDL_MINOR 2
|
||||
#define MINSDL_PATCH 7
|
||||
|
||||
// Input subsystem
|
||||
void IN_Init (void);
|
||||
void IN_Frame (void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue