mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 06:42:26 +00:00
More whitespace than you can shake a shambler at.
This commit is contained in:
parent
e32119aa3c
commit
800ee05584
90 changed files with 390 additions and 411 deletions
|
@ -26,7 +26,7 @@
|
|||
$Id$
|
||||
*/
|
||||
#if defined(_WIN32) && !defined(__GNUC__)
|
||||
#pragma warning(disable:4305)
|
||||
# pragma warning(disable:4305)
|
||||
#endif
|
||||
{-0.525731, 0.000000, 0.850651},
|
||||
{-0.442863, 0.238856, 0.864188},
|
||||
|
|
|
@ -30,9 +30,9 @@
|
|||
#define __ASM_I386__
|
||||
|
||||
#ifdef HAVE_SYM_PREFIX_UNDERSCORE
|
||||
#define C(label) _##label
|
||||
# define C(label) _##label
|
||||
#else
|
||||
#define C(label) label
|
||||
# define C(label) label
|
||||
#endif
|
||||
|
||||
//
|
||||
|
|
|
@ -30,9 +30,9 @@
|
|||
#define _BOTHDEFS_H
|
||||
|
||||
#ifdef USE_INTEL_ASM
|
||||
#define UNALIGNED_OK 1 // set to 0 if unaligned accesses are not supported
|
||||
# define UNALIGNED_OK 1 // set to 0 if unaligned accesses are not supported
|
||||
#else
|
||||
#define UNALIGNED_OK 0
|
||||
# define UNALIGNED_OK 0
|
||||
#endif
|
||||
|
||||
// !!! if this is changed, it must be changed in d_ifacea.h too !!!
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
#ifdef HAVE_SYS_TYPES_H
|
||||
# include <sys/types.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifndef max
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include <sys/types.h>
|
||||
|
||||
#ifdef __GLIBC__
|
||||
#include <asm/types.h>
|
||||
# include <asm/types.h>
|
||||
#endif
|
||||
|
||||
#include <linux/fb.h>
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#define _GCC_ATTR_H
|
||||
|
||||
#ifndef __GNUC__
|
||||
#define __attribute__(x)
|
||||
# define __attribute__(x)
|
||||
#endif
|
||||
|
||||
#endif // _GCC_ATTR_H
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
//define PARANOID // speed sapping error checking
|
||||
|
||||
#if defined(_WIN32) && !defined(__GNUC__)
|
||||
#pragma warning( disable : 4244 4127 4201 4214 4514 4305 4115 4018)
|
||||
# pragma warning( disable : 4244 4127 4201 4214 4514 4305 4115 4018)
|
||||
#endif
|
||||
|
||||
#define MAX_NUM_ARGVS 50
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#define _INFO_H
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdlib.h> // for size_t. sys/types.h SHOULD be used, but can't :(bc)
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include "qtypes.h"
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.14159265358979323846 // matches value in gcc v2 math.h
|
||||
# define M_PI 3.14159265358979323846 // matches value in gcc v2 math.h
|
||||
#endif
|
||||
|
||||
struct mplane_s;
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#ifndef _MDFOUR_H
|
||||
#define _MDFOUR_H
|
||||
|
||||
#include "uint32.h"
|
||||
#include "uint32.h"
|
||||
|
||||
#define MDFOUR_DIGEST_BYTES 16
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
#include "qtypes.h"
|
||||
|
||||
#ifndef NULL
|
||||
#define NULL ((void *)0)
|
||||
# define NULL ((void *)0)
|
||||
#endif
|
||||
|
||||
#define Q_MAXCHAR ((char)0x7f)
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_WINDOWS_H
|
||||
# include <windows.h>
|
||||
#endif
|
||||
|
@ -42,7 +41,6 @@
|
|||
#ifdef HAVE_GL_GLX_H
|
||||
# include <GL/glx.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_GL_GLEXT_H
|
||||
# include <GL/glext.h>
|
||||
#endif
|
||||
|
@ -60,81 +58,81 @@
|
|||
|
||||
// OpenGL numbers for extensions we use or want to use
|
||||
#ifndef GL_EXT_bgra
|
||||
#define GL_EXT_bgra
|
||||
# define GL_EXT_bgra
|
||||
# define GL_BGR_EXT 0x80E0
|
||||
# define GL_BGRA_EXT 0x80E1
|
||||
#endif
|
||||
|
||||
#ifndef GL_EXT_paletted_texture
|
||||
#define GL_EXT_paletted_texture
|
||||
#define GL_COLOR_INDEX1_EXT 0x80E2
|
||||
#define GL_COLOR_INDEX2_EXT 0x80E3
|
||||
#define GL_COLOR_INDEX4_EXT 0x80E4
|
||||
#define GL_COLOR_INDEX8_EXT 0x80E5
|
||||
#define GL_COLOR_INDEX12_EXT 0x80E6
|
||||
#define GL_COLOR_INDEX16_EXT 0x80E7
|
||||
#define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED
|
||||
# define GL_EXT_paletted_texture
|
||||
# define GL_COLOR_INDEX1_EXT 0x80E2
|
||||
# define GL_COLOR_INDEX2_EXT 0x80E3
|
||||
# define GL_COLOR_INDEX4_EXT 0x80E4
|
||||
# define GL_COLOR_INDEX8_EXT 0x80E5
|
||||
# define GL_COLOR_INDEX12_EXT 0x80E6
|
||||
# define GL_COLOR_INDEX16_EXT 0x80E7
|
||||
# define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED
|
||||
#endif
|
||||
|
||||
#ifndef GL_EXT_texture_object
|
||||
#define GL_EXT_texture_object
|
||||
#define GL_TEXTURE_PRIORITY_EXT 0x8066
|
||||
#define GL_TEXTURE_RESIDENT_EXT 0x8067
|
||||
#define GL_TEXTURE_1D_BINDING_EXT 0x8068
|
||||
#define GL_TEXTURE_2D_BINDING_EXT 0x8069
|
||||
#define GL_TEXTURE_3D_BINDING_EXT 0x806A
|
||||
# define GL_EXT_texture_object
|
||||
# define GL_TEXTURE_PRIORITY_EXT 0x8066
|
||||
# define GL_TEXTURE_RESIDENT_EXT 0x8067
|
||||
# define GL_TEXTURE_1D_BINDING_EXT 0x8068
|
||||
# define GL_TEXTURE_2D_BINDING_EXT 0x8069
|
||||
# define GL_TEXTURE_3D_BINDING_EXT 0x806A
|
||||
#endif
|
||||
|
||||
#ifndef GL_EXT_point_parameters
|
||||
#define GL_EXT_point_parameters
|
||||
#define GL_POINT_SIZE_MIN_EXT 0x8126
|
||||
#define GL_POINT_SIZE_MAX_EXT 0x8127
|
||||
#define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128
|
||||
#define GL_DISTANCE_ATTENUATION_EXT 0x8129
|
||||
# define GL_EXT_point_parameters
|
||||
# define GL_POINT_SIZE_MIN_EXT 0x8126
|
||||
# define GL_POINT_SIZE_MAX_EXT 0x8127
|
||||
# define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128
|
||||
# define GL_DISTANCE_ATTENUATION_EXT 0x8129
|
||||
#endif
|
||||
|
||||
#ifndef GL_EXT_shared_texture_palette
|
||||
#define GL_EXT_shared_texture_palette
|
||||
#define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB
|
||||
# define GL_EXT_shared_texture_palette
|
||||
# define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB
|
||||
#endif
|
||||
|
||||
#ifndef GL_ARB_multitexture
|
||||
#define GL_ARB_multitexture
|
||||
#define GL_TEXTURE0_ARB 0x84C0
|
||||
#define GL_TEXTURE1_ARB 0x84C1
|
||||
#define GL_TEXTURE2_ARB 0x84C2
|
||||
#define GL_TEXTURE3_ARB 0x84C3
|
||||
#define GL_TEXTURE4_ARB 0x84C4
|
||||
#define GL_TEXTURE5_ARB 0x84C5
|
||||
#define GL_TEXTURE6_ARB 0x84C6
|
||||
#define GL_TEXTURE7_ARB 0x84C7
|
||||
#define GL_TEXTURE8_ARB 0x84C8
|
||||
#define GL_TEXTURE9_ARB 0x84C9
|
||||
#define GL_TEXTURE10_ARB 0x84CA
|
||||
#define GL_TEXTURE11_ARB 0x84CB
|
||||
#define GL_TEXTURE12_ARB 0x84CC
|
||||
#define GL_TEXTURE13_ARB 0x84CD
|
||||
#define GL_TEXTURE14_ARB 0x84CE
|
||||
#define GL_TEXTURE15_ARB 0x84CF
|
||||
#define GL_TEXTURE16_ARB 0x84D0
|
||||
#define GL_TEXTURE17_ARB 0x84D1
|
||||
#define GL_TEXTURE18_ARB 0x84D2
|
||||
#define GL_TEXTURE19_ARB 0x84D3
|
||||
#define GL_TEXTURE20_ARB 0x84D4
|
||||
#define GL_TEXTURE21_ARB 0x84D5
|
||||
#define GL_TEXTURE22_ARB 0x84D6
|
||||
#define GL_TEXTURE23_ARB 0x84D7
|
||||
#define GL_TEXTURE24_ARB 0x84D8
|
||||
#define GL_TEXTURE25_ARB 0x84D9
|
||||
#define GL_TEXTURE26_ARB 0x84DA
|
||||
#define GL_TEXTURE27_ARB 0x84DB
|
||||
#define GL_TEXTURE28_ARB 0x84DC
|
||||
#define GL_TEXTURE29_ARB 0x84DD
|
||||
#define GL_TEXTURE30_ARB 0x84DE
|
||||
#define GL_TEXTURE31_ARB 0x84DF
|
||||
#define GL_ACTIVE_TEXTURE_ARB 0x84E0
|
||||
#define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1
|
||||
#define GL_MAX_TEXTURE_UNITS_ARB 0x84E2
|
||||
# define GL_ARB_multitexture
|
||||
# define GL_TEXTURE0_ARB 0x84C0
|
||||
# define GL_TEXTURE1_ARB 0x84C1
|
||||
# define GL_TEXTURE2_ARB 0x84C2
|
||||
# define GL_TEXTURE3_ARB 0x84C3
|
||||
# define GL_TEXTURE4_ARB 0x84C4
|
||||
# define GL_TEXTURE5_ARB 0x84C5
|
||||
# define GL_TEXTURE6_ARB 0x84C6
|
||||
# define GL_TEXTURE7_ARB 0x84C7
|
||||
# define GL_TEXTURE8_ARB 0x84C8
|
||||
# define GL_TEXTURE9_ARB 0x84C9
|
||||
# define GL_TEXTURE10_ARB 0x84CA
|
||||
# define GL_TEXTURE11_ARB 0x84CB
|
||||
# define GL_TEXTURE12_ARB 0x84CC
|
||||
# define GL_TEXTURE13_ARB 0x84CD
|
||||
# define GL_TEXTURE14_ARB 0x84CE
|
||||
# define GL_TEXTURE15_ARB 0x84CF
|
||||
# define GL_TEXTURE16_ARB 0x84D0
|
||||
# define GL_TEXTURE17_ARB 0x84D1
|
||||
# define GL_TEXTURE18_ARB 0x84D2
|
||||
# define GL_TEXTURE19_ARB 0x84D3
|
||||
# define GL_TEXTURE20_ARB 0x84D4
|
||||
# define GL_TEXTURE21_ARB 0x84D5
|
||||
# define GL_TEXTURE22_ARB 0x84D6
|
||||
# define GL_TEXTURE23_ARB 0x84D7
|
||||
# define GL_TEXTURE24_ARB 0x84D8
|
||||
# define GL_TEXTURE25_ARB 0x84D9
|
||||
# define GL_TEXTURE26_ARB 0x84DA
|
||||
# define GL_TEXTURE27_ARB 0x84DB
|
||||
# define GL_TEXTURE28_ARB 0x84DC
|
||||
# define GL_TEXTURE29_ARB 0x84DD
|
||||
# define GL_TEXTURE30_ARB 0x84DE
|
||||
# define GL_TEXTURE31_ARB 0x84DF
|
||||
# define GL_ACTIVE_TEXTURE_ARB 0x84E0
|
||||
# define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1
|
||||
# define GL_MAX_TEXTURE_UNITS_ARB 0x84E2
|
||||
#endif
|
||||
|
||||
/* Standard OpenGL external function defs */
|
||||
|
|
|
@ -35,8 +35,9 @@
|
|||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HAVE_ZLIB
|
||||
#include <zlib.h>
|
||||
# include <zlib.h>
|
||||
#endif
|
||||
|
||||
#include "gcc_attr.h"
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
#ifndef PROGS_T
|
||||
typedef struct progs_s progs_t;
|
||||
#define PROGS_T
|
||||
# define PROGS_T
|
||||
#endif
|
||||
|
||||
char *PF_VarString (progs_t *pr, int first);
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#define __texture_h
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
// could not use texture_t as that is used for models.
|
||||
|
|
|
@ -33,21 +33,21 @@
|
|||
#define _UINT32_H
|
||||
|
||||
#ifndef int32
|
||||
#if (SIZEOF_INT == 4)
|
||||
#define int32 int
|
||||
#elif (SIZEOF_LONG == 4)
|
||||
#define int32 long
|
||||
#elif (SIZEOF_SHORT == 4)
|
||||
#define int32 short
|
||||
#else
|
||||
# if (SIZEOF_INT == 4)
|
||||
# define int32 int
|
||||
# elif (SIZEOF_LONG == 4)
|
||||
# define int32 long
|
||||
# elif (SIZEOF_SHORT == 4)
|
||||
# define int32 short
|
||||
# else
|
||||
/* I hope this works */
|
||||
#define int32 int
|
||||
#define LARGE_INT32
|
||||
#endif
|
||||
# define int32 int
|
||||
# define LARGE_INT32
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef uint32
|
||||
#define uint32 unsigned int32
|
||||
# define uint32 unsigned int32
|
||||
#endif
|
||||
|
||||
#endif // _UINT32_H
|
||||
|
|
|
@ -42,17 +42,17 @@ void Sys_HighFPPrecision(void)
|
|||
|
||||
void Sys_LowFPPrecision(void)
|
||||
{
|
||||
return;
|
||||
return;
|
||||
}
|
||||
|
||||
void MaskExceptions(void)
|
||||
{
|
||||
return;
|
||||
return;
|
||||
}
|
||||
|
||||
void Sys_SetFPCW(void)
|
||||
{
|
||||
return;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -74,5 +74,3 @@ void snprintf(char * buffer, size_t n, const char * format, ...)
|
|||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
@ -70,16 +70,16 @@
|
|||
|
||||
/* Define this to the subdirectory name of the default game */
|
||||
#ifdef NEWSTYLE
|
||||
# define BASEGAME "base"
|
||||
# define BASEGAME "base"
|
||||
#else
|
||||
# define BASEGAME "id1"
|
||||
# define BASEGAME "id1"
|
||||
#endif
|
||||
|
||||
/* Define this to the base directory for the client to download skins to */
|
||||
#ifdef NEWSTYLE
|
||||
# define SKINBASE "base"
|
||||
# define SKINBASE "base"
|
||||
#else
|
||||
# define SKINBASE "qw"
|
||||
# define SKINBASE "qw"
|
||||
#endif
|
||||
|
||||
/* Define if you have the XFree86 DGA extension */
|
||||
|
@ -286,26 +286,26 @@
|
|||
|
||||
/* Experimental 3DNOW support */
|
||||
#ifdef HAVE_3DNOW_ASM
|
||||
#define atan _atan
|
||||
#define atan2 _atan2
|
||||
#define acos _acos
|
||||
#define asin _asin
|
||||
#define log _log
|
||||
#define log10 _log10
|
||||
#define pow _pow
|
||||
#define exp _exp
|
||||
#define sqrt _sqrt
|
||||
#define fabs _fabs
|
||||
#define ceil _ceil
|
||||
#define floor _floor
|
||||
#define frexp _frexp
|
||||
#define ldexp _ldexp
|
||||
#define modf _modf
|
||||
#define fmod _fmod
|
||||
#define sincos _sincos
|
||||
#define sin _sin
|
||||
#define cos _cos
|
||||
#define tan _tan
|
||||
# define atan _atan
|
||||
# define atan2 _atan2
|
||||
# define acos _acos
|
||||
# define asin _asin
|
||||
# define log _log
|
||||
# define log10 _log10
|
||||
# define pow _pow
|
||||
# define exp _exp
|
||||
# define sqrt _sqrt
|
||||
# define fabs _fabs
|
||||
# define ceil _ceil
|
||||
# define floor _floor
|
||||
# define frexp _frexp
|
||||
# define ldexp _ldexp
|
||||
# define modf _modf
|
||||
# define fmod _fmod
|
||||
# define sincos _sincos
|
||||
# define sin _sin
|
||||
# define cos _cos
|
||||
# define tan _tan
|
||||
#endif
|
||||
|
||||
#endif // _CONFIG_H
|
||||
|
|
|
@ -27,11 +27,11 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#if defined (__cplusplus) || (defined (__STDC__) && __STDC__)
|
||||
#undef __P
|
||||
#define __P(args) args
|
||||
# undef __P
|
||||
# define __P(args) args
|
||||
#else /* Not C++ or ANSI C. */
|
||||
#undef __P
|
||||
#define __P(args) ()
|
||||
# undef __P
|
||||
# define __P(args) ()
|
||||
/* We can get away without defining `const' here only because in this file
|
||||
it is used only inside the prototype for `fnmatch', which is elided in
|
||||
non-ANSI C where `const' is problematical. */
|
||||
|
@ -50,9 +50,9 @@ extern "C" {
|
|||
#define FNM_PERIOD (1 << 2) /* Leading `.' is matched only explicitly. */
|
||||
|
||||
#if !defined (_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 2 || defined (_GNU_SOURCE)
|
||||
#define FNM_FILE_NAME FNM_PATHNAME /* Preferred GNU name. */
|
||||
#define FNM_LEADING_DIR (1 << 3) /* Ignore `/...' after a match. */
|
||||
#define FNM_CASEFOLD (1 << 4) /* Compare without regard to case. */
|
||||
# define FNM_FILE_NAME FNM_PATHNAME /* Preferred GNU name. */
|
||||
# define FNM_LEADING_DIR (1 << 3) /* Ignore `/...' after a match. */
|
||||
# define FNM_CASEFOLD (1 << 4) /* Compare without regard to case. */
|
||||
#endif
|
||||
|
||||
/* Value returned by `fnmatch' if STRING does not match PATTERN. */
|
||||
|
|
|
@ -73,16 +73,16 @@
|
|||
|
||||
/* Define this to the subdirectory name of the default game */
|
||||
#ifdef NEWSTYLE
|
||||
# define BASEGAME "base"
|
||||
# define BASEGAME "base"
|
||||
#else
|
||||
# define BASEGAME "id1"
|
||||
# define BASEGAME "id1"
|
||||
#endif
|
||||
|
||||
/* Define this to the base directory for the client to download skins to */
|
||||
#ifdef NEWSTYLE
|
||||
# define SKINBASE "base"
|
||||
# define SKINBASE "base"
|
||||
#else
|
||||
# define SKINBASE "qw"
|
||||
# define SKINBASE "qw"
|
||||
#endif
|
||||
|
||||
/* Define if you have the XFree86 DGA extension */
|
||||
|
@ -284,26 +284,26 @@
|
|||
|
||||
/* Experimental 3DNOW support */
|
||||
#ifdef HAVE_3DNOW_ASM
|
||||
#define atan _atan
|
||||
#define atan2 _atan2
|
||||
#define acos _acos
|
||||
#define asin _asin
|
||||
#define log _log
|
||||
#define log10 _log10
|
||||
#define pow _pow
|
||||
#define exp _exp
|
||||
#define sqrt _sqrt
|
||||
#define fabs _fabs
|
||||
#define ceil _ceil
|
||||
#define floor _floor
|
||||
#define frexp _frexp
|
||||
#define ldexp _ldexp
|
||||
#define modf _modf
|
||||
#define fmod _fmod
|
||||
#define sincos _sincos
|
||||
#define sin _sin
|
||||
#define cos _cos
|
||||
#define tan _tan
|
||||
# define atan _atan
|
||||
# define atan2 _atan2
|
||||
# define acos _acos
|
||||
# define asin _asin
|
||||
# define log _log
|
||||
# define log10 _log10
|
||||
# define pow _pow
|
||||
# define exp _exp
|
||||
# define sqrt _sqrt
|
||||
# define fabs _fabs
|
||||
# define ceil _ceil
|
||||
# define floor _floor
|
||||
# define frexp _frexp
|
||||
# define ldexp _ldexp
|
||||
# define modf _modf
|
||||
# define fmod _fmod
|
||||
# define sincos _sincos
|
||||
# define sin _sin
|
||||
# define cos _cos
|
||||
# define tan _tan
|
||||
#endif
|
||||
|
||||
#endif // _CONFIG_H
|
||||
|
|
|
@ -36,10 +36,10 @@
|
|||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 115
|
||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||
#define _APS_NEXT_CONTROL_VALUE 1001
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
# ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
# define _APS_NEXT_RESOURCE_VALUE 115
|
||||
# define _APS_NEXT_COMMAND_VALUE 40001
|
||||
# define _APS_NEXT_CONTROL_VALUE 1001
|
||||
# define _APS_NEXT_SYMED_VALUE 101
|
||||
# endif
|
||||
#endif
|
||||
|
|
|
@ -294,26 +294,26 @@
|
|||
#define strncasecmp(s1, s2, n) strnicmp((s1), (s2), (n))
|
||||
|
||||
#ifdef HAVE_3DNOW_ASM
|
||||
# define atan _atan
|
||||
# define atan2 _atan2
|
||||
# define acos _acos
|
||||
# define asin _asin
|
||||
# define log _log
|
||||
# define log10 _log10
|
||||
# define pow _pow
|
||||
# define exp _exp
|
||||
# define sqrt _sqrt
|
||||
# define fabs _fabs
|
||||
# define ceil _ceil
|
||||
# define floor _floor
|
||||
# define frexp _frexp
|
||||
# define ldexp _ldexp
|
||||
# define modf _modf
|
||||
# define fmod _fmod
|
||||
# define sincos _sincos
|
||||
# define sin _sin
|
||||
# define cos _cos
|
||||
# define tan _tan
|
||||
# define atan _atan
|
||||
# define atan2 _atan2
|
||||
# define acos _acos
|
||||
# define asin _asin
|
||||
# define log _log
|
||||
# define log10 _log10
|
||||
# define pow _pow
|
||||
# define exp _exp
|
||||
# define sqrt _sqrt
|
||||
# define fabs _fabs
|
||||
# define ceil _ceil
|
||||
# define floor _floor
|
||||
# define frexp _frexp
|
||||
# define ldexp _ldexp
|
||||
# define modf _modf
|
||||
# define fmod _fmod
|
||||
# define sincos _sincos
|
||||
# define sin _sin
|
||||
# define cos _cos
|
||||
# define tan _tan
|
||||
#endif
|
||||
|
||||
#endif // _CONFIG_H
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
#include <windows.h>
|
||||
#include <ddraw.h>
|
||||
#include <dsound.h>
|
||||
|
||||
#ifdef HAVE_MGRAPH_H
|
||||
# include <mgraph.h>
|
||||
#endif
|
||||
|
|
|
@ -28,15 +28,14 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_WINDOWS_H
|
||||
# include <windows.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <SDL.h>
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#include "cdaudio.h"
|
||||
|
|
|
@ -29,12 +29,11 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "checksum.h"
|
||||
|
|
|
@ -34,15 +34,15 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#include "cl_cam.h"
|
||||
#include "client.h"
|
||||
#include "commdef.h"
|
||||
|
|
|
@ -29,12 +29,11 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "client.h"
|
||||
|
|
|
@ -32,18 +32,17 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
# include <sys/time.h>
|
||||
#endif
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "bothdefs.h"
|
||||
|
|
|
@ -42,15 +42,15 @@
|
|||
#include <conio.h>
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <unistd.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
#include <limits.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/mman.h>
|
||||
# include <unistd.h>
|
||||
# include <stdarg.h>
|
||||
# include <string.h>
|
||||
# include <ctype.h>
|
||||
# include <fcntl.h>
|
||||
# include <signal.h>
|
||||
# include <limits.h>
|
||||
# include <sys/types.h>
|
||||
# include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
#include <SDL.H>
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
|
|
@ -29,15 +29,15 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "cl_ents.h"
|
||||
#include "cl_main.h"
|
||||
|
|
|
@ -29,15 +29,15 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <ctype.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
#include "cvar.h"
|
||||
#include "cmd.h"
|
||||
#include "console.h"
|
||||
|
|
|
@ -29,17 +29,15 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "client.h"
|
||||
#include "cmd.h"
|
||||
#include "commdef.h"
|
||||
|
|
|
@ -29,14 +29,18 @@
|
|||
$Id$
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <ctype.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <signal.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -32,15 +32,15 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "commdef.h"
|
||||
#include "cvar.h"
|
||||
|
|
|
@ -30,13 +30,13 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "d_local.h"
|
||||
#include "qargs.h"
|
||||
#include "r_local.h"
|
||||
#include "sys.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
float surfscale;
|
||||
qboolean r_cache_thrash; // set if surface cache is thrashing
|
||||
|
||||
|
|
|
@ -36,10 +36,10 @@
|
|||
#include <X11/Xlib.h>
|
||||
|
||||
#ifdef HAVE_DGA
|
||||
#include <X11/extensions/xf86dga.h>
|
||||
# include <X11/extensions/xf86dga.h>
|
||||
#endif
|
||||
#ifdef HAVE_VIDMODE
|
||||
#include <X11/extensions/xf86vmode.h>
|
||||
# include <X11/extensions/xf86vmode.h>
|
||||
#endif
|
||||
|
||||
#include "dga_check.h"
|
||||
|
|
|
@ -29,12 +29,11 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "client.h"
|
||||
|
|
|
@ -26,10 +26,12 @@
|
|||
$Id$
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
# define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
fractalnoise.c
|
||||
|
||||
LordHavocs fractial noise generator.
|
||||
LordHavocs fractal noise generator.
|
||||
|
||||
Copyright (C) 2000 Forest `LordHavoc` Hale.
|
||||
|
||||
|
|
|
@ -29,13 +29,13 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "console.h"
|
||||
|
|
|
@ -30,15 +30,15 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "glquake.h"
|
||||
#include "sys.h"
|
||||
|
|
|
@ -30,19 +30,16 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <termios.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
#include "protocol.h"
|
||||
#include "cvar.h"
|
||||
#include "keys.h"
|
||||
|
||||
#include <termios.h>
|
||||
#include <unistd.h>
|
||||
|
||||
cvar_t *_windowed_mouse;
|
||||
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
int
|
||||
fd_blocking (int fd, int on)
|
||||
{
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
|
||||
#ifdef WIN32
|
||||
// fixme: this is evil...
|
||||
#include <windows.h>
|
||||
# include <windows.h>
|
||||
HWND mainwindow;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -32,13 +32,12 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <vga.h>
|
||||
#include <vgakeyboard.h>
|
||||
#include <vgamouse.h>
|
||||
|
|
|
@ -42,7 +42,6 @@
|
|||
#include "input.h"
|
||||
#include "cl_input.h"
|
||||
#include "view.h"
|
||||
//#include "dosisms.h"
|
||||
#include "host.h"
|
||||
|
||||
#define DINPUT_BUFFERSIZE 16
|
||||
|
|
|
@ -32,30 +32,27 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
#endif
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#define _BSD
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/keysym.h>
|
||||
|
||||
#ifdef HAVE_DGA
|
||||
#include <X11/extensions/XShm.h>
|
||||
#include <X11/extensions/xf86dga.h>
|
||||
# include <X11/extensions/XShm.h>
|
||||
# include <X11/extensions/xf86dga.h>
|
||||
#endif
|
||||
|
||||
#include "cl_input.h"
|
||||
|
|
|
@ -29,15 +29,15 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "console.h"
|
||||
#include "info.h"
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef __MINGW32__
|
||||
# define INITGUID
|
||||
#endif
|
||||
|
|
|
@ -29,19 +29,19 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
# include <windows.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "client.h"
|
||||
#include "cmd.h"
|
||||
#include "console.h"
|
||||
|
|
|
@ -29,15 +29,15 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <limits.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
#include "client.h"
|
||||
#include "console.h"
|
||||
#include "locs.h"
|
||||
|
|
|
@ -29,24 +29,23 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
# include <sys/time.h>
|
||||
#endif
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#ifdef HAVE_NETINET_IN_H
|
||||
#include <netinet/in.h>
|
||||
# include <netinet/in.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
#ifdef HAVE_WINDOWS_H
|
||||
#include <windows.h>
|
||||
# include <windows.h>
|
||||
#endif
|
||||
|
||||
#include "cl_input.h"
|
||||
|
|
|
@ -32,15 +32,16 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
|
||||
|
||||
#include "checksum.h"
|
||||
#include "cvar.h"
|
||||
#include "model.h"
|
||||
|
|
|
@ -29,12 +29,11 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "msg.h"
|
||||
|
|
|
@ -35,10 +35,10 @@
|
|||
# include <windows.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <time.h>
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
#include <errno.h>
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@ -65,7 +65,7 @@
|
|||
#endif
|
||||
|
||||
#ifdef NeXT
|
||||
#include <libc.h>
|
||||
# include <libc.h>
|
||||
#endif
|
||||
|
||||
#include "console.h"
|
||||
|
@ -74,7 +74,7 @@
|
|||
#include "qargs.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
# include <windows.h>
|
||||
# undef EWOULDBLOCK
|
||||
# define EWOULDBLOCK WSAEWOULDBLOCK
|
||||
#endif
|
||||
|
@ -85,9 +85,9 @@
|
|||
|
||||
#ifndef HAVE_SOCKLEN_T
|
||||
# ifdef HAVE_SIZE
|
||||
typedef size_t socklen_t;
|
||||
typedef size_t socklen_t;
|
||||
# else
|
||||
typedef unsigned int socklen_t;
|
||||
typedef unsigned int socklen_t;
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
@ -103,7 +103,7 @@ extern qboolean is_server;
|
|||
byte net_message_buffer[MAX_UDP_PACKET];
|
||||
|
||||
#ifdef _WIN32
|
||||
WSADATA winsockdata;
|
||||
WSADATA winsockdata;
|
||||
#endif
|
||||
|
||||
//=============================================================================
|
||||
|
|
|
@ -57,15 +57,16 @@
|
|||
#endif
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <unistd.h>
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_IOCTL_H
|
||||
# include <sys/ioctl.h>
|
||||
|
@ -89,7 +90,7 @@
|
|||
#undef model_t
|
||||
|
||||
#ifdef NeXT
|
||||
#include <libc.h>
|
||||
# include <libc.h>
|
||||
#endif
|
||||
|
||||
#include "console.h"
|
||||
|
@ -99,12 +100,12 @@
|
|||
#include "sys.h"
|
||||
|
||||
#ifndef MAXHOSTNAMELEN
|
||||
#define MAXHOSTNAMELEN 512
|
||||
# define MAXHOSTNAMELEN 512
|
||||
#endif
|
||||
|
||||
#ifdef __GLIBC__ // glibc macro
|
||||
#define s6_addr32 in6_u.u6_addr32
|
||||
#define ss_family __ss_family
|
||||
# define s6_addr32 in6_u.u6_addr32
|
||||
# define ss_family __ss_family
|
||||
#endif
|
||||
|
||||
netadr_t net_local_adr;
|
||||
|
@ -117,7 +118,7 @@ int net_socket;
|
|||
byte net_message_buffer[MAX_UDP_PACKET];
|
||||
|
||||
#ifdef _WIN32
|
||||
WSADATA winsockdata;
|
||||
WSADATA winsockdata;
|
||||
#endif
|
||||
|
||||
//=============================================================================
|
||||
|
|
|
@ -29,12 +29,11 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "cl_parse.h"
|
||||
|
|
|
@ -29,12 +29,11 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "cmd.h"
|
||||
|
|
|
@ -32,13 +32,13 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_DLFCN_H
|
||||
# include <dlfcn.h>
|
||||
#endif
|
||||
|
@ -59,10 +58,10 @@
|
|||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "qfgl_ext.h"
|
||||
|
|
|
@ -29,26 +29,19 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <ctype.h>
|
||||
#include <fcntl.h>
|
||||
#include <dirent.h>
|
||||
|
||||
|
|
|
@ -31,17 +31,14 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_MALLOC_H
|
||||
# include <malloc.h>
|
||||
#endif
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
#ifdef WIN32
|
||||
# include <io.h>
|
||||
|
@ -55,6 +52,9 @@
|
|||
#ifdef _MSC_VER
|
||||
# define _POSIX_
|
||||
#endif
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include "quakefs.h"
|
||||
|
|
|
@ -29,13 +29,13 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#include "console.h"
|
||||
|
|
|
@ -29,15 +29,15 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "bothdefs.h"
|
||||
#include "cl_cam.h"
|
||||
#include "client.h"
|
||||
|
|
|
@ -29,15 +29,15 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <time.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <time.h>
|
||||
|
||||
#include "cl_parse.h"
|
||||
#include "client.h"
|
||||
#include "cmd.h"
|
||||
|
|
|
@ -29,12 +29,11 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "console.h"
|
||||
|
|
|
@ -30,12 +30,12 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
#include <sys/types.h>
|
||||
#ifdef HAVE_SYS_IOCTL_H
|
||||
|
|
|
@ -30,12 +30,12 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
|
|
|
@ -29,13 +29,13 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "client.h"
|
||||
|
|
|
@ -29,12 +29,11 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "console.h"
|
||||
|
|
|
@ -30,19 +30,19 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "console.h"
|
||||
#include "sound.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "winquake.h"
|
||||
# include "winquake.h"
|
||||
#else
|
||||
#define DWORD unsigned long
|
||||
# define DWORD unsigned long
|
||||
#endif
|
||||
|
||||
#define PAINTBUFFER_SIZE 512
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <SDL_audio.h>
|
||||
#include <SDL_byteorder.h>
|
||||
|
||||
|
|
|
@ -31,10 +31,10 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
|
|
|
@ -29,15 +29,15 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "bothdefs.h"
|
||||
#include "cmd.h"
|
||||
#include "msg.h"
|
||||
|
|
|
@ -29,12 +29,11 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "msg.h"
|
||||
|
|
|
@ -29,12 +29,11 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "crc.h"
|
||||
|
|
|
@ -29,16 +29,16 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "bothdefs.h"
|
||||
#include "buildnum.h"
|
||||
#include "cmd.h"
|
||||
|
|
|
@ -30,10 +30,10 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "msg.h"
|
||||
|
|
|
@ -29,8 +29,9 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
||||
#include "cmd.h"
|
||||
#include "msg.h"
|
||||
|
|
|
@ -29,9 +29,11 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
||||
|
|
|
@ -30,6 +30,12 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
@ -38,12 +44,6 @@
|
|||
#include <unistd.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/types.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "cvar.h"
|
||||
#include "qargs.h"
|
||||
|
@ -51,7 +51,7 @@
|
|||
#include "sys.h"
|
||||
|
||||
#ifdef NeXT
|
||||
#include <libc.h>
|
||||
# include <libc.h>
|
||||
#endif
|
||||
|
||||
cvar_t *sys_extrasleep;
|
||||
|
|
|
@ -27,15 +27,15 @@
|
|||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#include "bothdefs.h"
|
||||
|
|
|
@ -29,12 +29,11 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
# include <string.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "qendian.h"
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#if defined(HAVE_SYS_IO_H)
|
||||
#ifdef HAVE_SYS_IO_H
|
||||
# include <sys/io.h>
|
||||
#elif defined(HAVE_ASM_IO_H)
|
||||
# include <asm/io.h>
|
||||
|
|
|
@ -51,8 +51,8 @@
|
|||
|
||||
#ifdef WIN32
|
||||
/* fixme: this is evil hack to get full DirectSound support with SDL */
|
||||
#include <windows.h>
|
||||
#include <SDL_syswm.h>
|
||||
# include <windows.h>
|
||||
# include <SDL_syswm.h>
|
||||
HWND mainwindow;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#include "vid.h"
|
||||
|
|
|
@ -29,9 +29,6 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
@ -39,6 +36,8 @@
|
|||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "commdef.h"
|
||||
#include "console.h"
|
||||
#include "crc.h"
|
||||
|
|
|
@ -29,9 +29,6 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
@ -39,6 +36,8 @@
|
|||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "cmd.h"
|
||||
#include "console.h"
|
||||
#include "qargs.h"
|
||||
|
|
Loading…
Reference in a new issue