More whitespace than you can shake a shambler at.

This commit is contained in:
Ragnvald Maartmann-Moe IV 2001-02-07 05:45:59 +00:00
parent e32119aa3c
commit 800ee05584
90 changed files with 390 additions and 411 deletions

View file

@ -26,7 +26,7 @@
$Id$ $Id$
*/ */
#if defined(_WIN32) && !defined(__GNUC__) #if defined(_WIN32) && !defined(__GNUC__)
#pragma warning(disable:4305) # pragma warning(disable:4305)
#endif #endif
{-0.525731, 0.000000, 0.850651}, {-0.525731, 0.000000, 0.850651},
{-0.442863, 0.238856, 0.864188}, {-0.442863, 0.238856, 0.864188},

View file

@ -30,9 +30,9 @@
#define __ASM_I386__ #define __ASM_I386__
#ifdef HAVE_SYM_PREFIX_UNDERSCORE #ifdef HAVE_SYM_PREFIX_UNDERSCORE
#define C(label) _##label # define C(label) _##label
#else #else
#define C(label) label # define C(label) label
#endif #endif
// //

View file

@ -30,9 +30,9 @@
#define _BOTHDEFS_H #define _BOTHDEFS_H
#ifdef USE_INTEL_ASM #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 #else
#define UNALIGNED_OK 0 # define UNALIGNED_OK 0
#endif #endif
// !!! if this is changed, it must be changed in d_ifacea.h too !!! // !!! if this is changed, it must be changed in d_ifacea.h too !!!

View file

@ -38,6 +38,7 @@
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H
# include <sys/types.h> # include <sys/types.h>
#endif #endif
#include <stdlib.h> #include <stdlib.h>
#ifndef max #ifndef max

View file

@ -16,7 +16,7 @@
#include <sys/types.h> #include <sys/types.h>
#ifdef __GLIBC__ #ifdef __GLIBC__
#include <asm/types.h> # include <asm/types.h>
#endif #endif
#include <linux/fb.h> #include <linux/fb.h>

View file

@ -30,7 +30,7 @@
#define _GCC_ATTR_H #define _GCC_ATTR_H
#ifndef __GNUC__ #ifndef __GNUC__
#define __attribute__(x) # define __attribute__(x)
#endif #endif
#endif // _GCC_ATTR_H #endif // _GCC_ATTR_H

View file

@ -38,7 +38,7 @@
//define PARANOID // speed sapping error checking //define PARANOID // speed sapping error checking
#if defined(_WIN32) && !defined(__GNUC__) #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 #endif
#define MAX_NUM_ARGVS 50 #define MAX_NUM_ARGVS 50

View file

@ -30,7 +30,7 @@
#define _INFO_H #define _INFO_H
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" # include "config.h"
#endif #endif
#include <stdlib.h> // for size_t. sys/types.h SHOULD be used, but can't :(bc) #include <stdlib.h> // for size_t. sys/types.h SHOULD be used, but can't :(bc)

View file

@ -33,7 +33,7 @@
#include "qtypes.h" #include "qtypes.h"
#ifndef M_PI #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 #endif
struct mplane_s; struct mplane_s;

View file

@ -30,7 +30,7 @@
#ifndef _MDFOUR_H #ifndef _MDFOUR_H
#define _MDFOUR_H #define _MDFOUR_H
#include "uint32.h" #include "uint32.h"
#define MDFOUR_DIGEST_BYTES 16 #define MDFOUR_DIGEST_BYTES 16

View file

@ -34,7 +34,7 @@
#include "qtypes.h" #include "qtypes.h"
#ifndef NULL #ifndef NULL
#define NULL ((void *)0) # define NULL ((void *)0)
#endif #endif
#define Q_MAXCHAR ((char)0x7f) #define Q_MAXCHAR ((char)0x7f)

View file

@ -32,7 +32,6 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_WINDOWS_H #ifdef HAVE_WINDOWS_H
# include <windows.h> # include <windows.h>
#endif #endif
@ -42,7 +41,6 @@
#ifdef HAVE_GL_GLX_H #ifdef HAVE_GL_GLX_H
# include <GL/glx.h> # include <GL/glx.h>
#endif #endif
#ifdef HAVE_GL_GLEXT_H #ifdef HAVE_GL_GLEXT_H
# include <GL/glext.h> # include <GL/glext.h>
#endif #endif
@ -60,81 +58,81 @@
// OpenGL numbers for extensions we use or want to use // OpenGL numbers for extensions we use or want to use
#ifndef GL_EXT_bgra #ifndef GL_EXT_bgra
#define GL_EXT_bgra # define GL_EXT_bgra
# define GL_BGR_EXT 0x80E0 # define GL_BGR_EXT 0x80E0
# define GL_BGRA_EXT 0x80E1 # define GL_BGRA_EXT 0x80E1
#endif #endif
#ifndef GL_EXT_paletted_texture #ifndef GL_EXT_paletted_texture
#define GL_EXT_paletted_texture # define GL_EXT_paletted_texture
#define GL_COLOR_INDEX1_EXT 0x80E2 # define GL_COLOR_INDEX1_EXT 0x80E2
#define GL_COLOR_INDEX2_EXT 0x80E3 # define GL_COLOR_INDEX2_EXT 0x80E3
#define GL_COLOR_INDEX4_EXT 0x80E4 # define GL_COLOR_INDEX4_EXT 0x80E4
#define GL_COLOR_INDEX8_EXT 0x80E5 # define GL_COLOR_INDEX8_EXT 0x80E5
#define GL_COLOR_INDEX12_EXT 0x80E6 # define GL_COLOR_INDEX12_EXT 0x80E6
#define GL_COLOR_INDEX16_EXT 0x80E7 # define GL_COLOR_INDEX16_EXT 0x80E7
#define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED # define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED
#endif #endif
#ifndef GL_EXT_texture_object #ifndef GL_EXT_texture_object
#define GL_EXT_texture_object # define GL_EXT_texture_object
#define GL_TEXTURE_PRIORITY_EXT 0x8066 # define GL_TEXTURE_PRIORITY_EXT 0x8066
#define GL_TEXTURE_RESIDENT_EXT 0x8067 # define GL_TEXTURE_RESIDENT_EXT 0x8067
#define GL_TEXTURE_1D_BINDING_EXT 0x8068 # define GL_TEXTURE_1D_BINDING_EXT 0x8068
#define GL_TEXTURE_2D_BINDING_EXT 0x8069 # define GL_TEXTURE_2D_BINDING_EXT 0x8069
#define GL_TEXTURE_3D_BINDING_EXT 0x806A # define GL_TEXTURE_3D_BINDING_EXT 0x806A
#endif #endif
#ifndef GL_EXT_point_parameters #ifndef GL_EXT_point_parameters
#define GL_EXT_point_parameters # define GL_EXT_point_parameters
#define GL_POINT_SIZE_MIN_EXT 0x8126 # define GL_POINT_SIZE_MIN_EXT 0x8126
#define GL_POINT_SIZE_MAX_EXT 0x8127 # define GL_POINT_SIZE_MAX_EXT 0x8127
#define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128 # define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128
#define GL_DISTANCE_ATTENUATION_EXT 0x8129 # define GL_DISTANCE_ATTENUATION_EXT 0x8129
#endif #endif
#ifndef GL_EXT_shared_texture_palette #ifndef GL_EXT_shared_texture_palette
#define GL_EXT_shared_texture_palette # define GL_EXT_shared_texture_palette
#define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB # define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB
#endif #endif
#ifndef GL_ARB_multitexture #ifndef GL_ARB_multitexture
#define GL_ARB_multitexture # define GL_ARB_multitexture
#define GL_TEXTURE0_ARB 0x84C0 # define GL_TEXTURE0_ARB 0x84C0
#define GL_TEXTURE1_ARB 0x84C1 # define GL_TEXTURE1_ARB 0x84C1
#define GL_TEXTURE2_ARB 0x84C2 # define GL_TEXTURE2_ARB 0x84C2
#define GL_TEXTURE3_ARB 0x84C3 # define GL_TEXTURE3_ARB 0x84C3
#define GL_TEXTURE4_ARB 0x84C4 # define GL_TEXTURE4_ARB 0x84C4
#define GL_TEXTURE5_ARB 0x84C5 # define GL_TEXTURE5_ARB 0x84C5
#define GL_TEXTURE6_ARB 0x84C6 # define GL_TEXTURE6_ARB 0x84C6
#define GL_TEXTURE7_ARB 0x84C7 # define GL_TEXTURE7_ARB 0x84C7
#define GL_TEXTURE8_ARB 0x84C8 # define GL_TEXTURE8_ARB 0x84C8
#define GL_TEXTURE9_ARB 0x84C9 # define GL_TEXTURE9_ARB 0x84C9
#define GL_TEXTURE10_ARB 0x84CA # define GL_TEXTURE10_ARB 0x84CA
#define GL_TEXTURE11_ARB 0x84CB # define GL_TEXTURE11_ARB 0x84CB
#define GL_TEXTURE12_ARB 0x84CC # define GL_TEXTURE12_ARB 0x84CC
#define GL_TEXTURE13_ARB 0x84CD # define GL_TEXTURE13_ARB 0x84CD
#define GL_TEXTURE14_ARB 0x84CE # define GL_TEXTURE14_ARB 0x84CE
#define GL_TEXTURE15_ARB 0x84CF # define GL_TEXTURE15_ARB 0x84CF
#define GL_TEXTURE16_ARB 0x84D0 # define GL_TEXTURE16_ARB 0x84D0
#define GL_TEXTURE17_ARB 0x84D1 # define GL_TEXTURE17_ARB 0x84D1
#define GL_TEXTURE18_ARB 0x84D2 # define GL_TEXTURE18_ARB 0x84D2
#define GL_TEXTURE19_ARB 0x84D3 # define GL_TEXTURE19_ARB 0x84D3
#define GL_TEXTURE20_ARB 0x84D4 # define GL_TEXTURE20_ARB 0x84D4
#define GL_TEXTURE21_ARB 0x84D5 # define GL_TEXTURE21_ARB 0x84D5
#define GL_TEXTURE22_ARB 0x84D6 # define GL_TEXTURE22_ARB 0x84D6
#define GL_TEXTURE23_ARB 0x84D7 # define GL_TEXTURE23_ARB 0x84D7
#define GL_TEXTURE24_ARB 0x84D8 # define GL_TEXTURE24_ARB 0x84D8
#define GL_TEXTURE25_ARB 0x84D9 # define GL_TEXTURE25_ARB 0x84D9
#define GL_TEXTURE26_ARB 0x84DA # define GL_TEXTURE26_ARB 0x84DA
#define GL_TEXTURE27_ARB 0x84DB # define GL_TEXTURE27_ARB 0x84DB
#define GL_TEXTURE28_ARB 0x84DC # define GL_TEXTURE28_ARB 0x84DC
#define GL_TEXTURE29_ARB 0x84DD # define GL_TEXTURE29_ARB 0x84DD
#define GL_TEXTURE30_ARB 0x84DE # define GL_TEXTURE30_ARB 0x84DE
#define GL_TEXTURE31_ARB 0x84DF # define GL_TEXTURE31_ARB 0x84DF
#define GL_ACTIVE_TEXTURE_ARB 0x84E0 # define GL_ACTIVE_TEXTURE_ARB 0x84E0
#define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1 # define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1
#define GL_MAX_TEXTURE_UNITS_ARB 0x84E2 # define GL_MAX_TEXTURE_UNITS_ARB 0x84E2
#endif #endif
/* Standard OpenGL external function defs */ /* Standard OpenGL external function defs */

View file

@ -35,8 +35,9 @@
#endif #endif
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_ZLIB #ifdef HAVE_ZLIB
#include <zlib.h> # include <zlib.h>
#endif #endif
#include "gcc_attr.h" #include "gcc_attr.h"

View file

@ -32,7 +32,7 @@
#ifndef PROGS_T #ifndef PROGS_T
typedef struct progs_s progs_t; typedef struct progs_s progs_t;
#define PROGS_T # define PROGS_T
#endif #endif
char *PF_VarString (progs_t *pr, int first); char *PF_VarString (progs_t *pr, int first);

View file

@ -33,7 +33,7 @@
#define __texture_h #define __texture_h
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" # include "config.h"
#endif #endif
// could not use texture_t as that is used for models. // could not use texture_t as that is used for models.

View file

@ -33,21 +33,21 @@
#define _UINT32_H #define _UINT32_H
#ifndef int32 #ifndef int32
#if (SIZEOF_INT == 4) # if (SIZEOF_INT == 4)
#define int32 int # define int32 int
#elif (SIZEOF_LONG == 4) # elif (SIZEOF_LONG == 4)
#define int32 long # define int32 long
#elif (SIZEOF_SHORT == 4) # elif (SIZEOF_SHORT == 4)
#define int32 short # define int32 short
#else # else
/* I hope this works */ /* I hope this works */
#define int32 int # define int32 int
#define LARGE_INT32 # define LARGE_INT32
#endif # endif
#endif #endif
#ifndef uint32 #ifndef uint32
#define uint32 unsigned int32 # define uint32 unsigned int32
#endif #endif
#endif // _UINT32_H #endif // _UINT32_H

View file

@ -42,17 +42,17 @@ void Sys_HighFPPrecision(void)
void Sys_LowFPPrecision(void) void Sys_LowFPPrecision(void)
{ {
return; return;
} }
void MaskExceptions(void) void MaskExceptions(void)
{ {
return; return;
} }
void Sys_SetFPCW(void) void Sys_SetFPCW(void)
{ {
return; return;
} }
#endif #endif
@ -74,5 +74,3 @@ void snprintf(char * buffer, size_t n, const char * format, ...)
#endif #endif
#endif #endif

View file

@ -70,16 +70,16 @@
/* Define this to the subdirectory name of the default game */ /* Define this to the subdirectory name of the default game */
#ifdef NEWSTYLE #ifdef NEWSTYLE
# define BASEGAME "base" # define BASEGAME "base"
#else #else
# define BASEGAME "id1" # define BASEGAME "id1"
#endif #endif
/* Define this to the base directory for the client to download skins to */ /* Define this to the base directory for the client to download skins to */
#ifdef NEWSTYLE #ifdef NEWSTYLE
# define SKINBASE "base" # define SKINBASE "base"
#else #else
# define SKINBASE "qw" # define SKINBASE "qw"
#endif #endif
/* Define if you have the XFree86 DGA extension */ /* Define if you have the XFree86 DGA extension */
@ -286,26 +286,26 @@
/* Experimental 3DNOW support */ /* Experimental 3DNOW support */
#ifdef HAVE_3DNOW_ASM #ifdef HAVE_3DNOW_ASM
#define atan _atan # define atan _atan
#define atan2 _atan2 # define atan2 _atan2
#define acos _acos # define acos _acos
#define asin _asin # define asin _asin
#define log _log # define log _log
#define log10 _log10 # define log10 _log10
#define pow _pow # define pow _pow
#define exp _exp # define exp _exp
#define sqrt _sqrt # define sqrt _sqrt
#define fabs _fabs # define fabs _fabs
#define ceil _ceil # define ceil _ceil
#define floor _floor # define floor _floor
#define frexp _frexp # define frexp _frexp
#define ldexp _ldexp # define ldexp _ldexp
#define modf _modf # define modf _modf
#define fmod _fmod # define fmod _fmod
#define sincos _sincos # define sincos _sincos
#define sin _sin # define sin _sin
#define cos _cos # define cos _cos
#define tan _tan # define tan _tan
#endif #endif
#endif // _CONFIG_H #endif // _CONFIG_H

View file

@ -27,11 +27,11 @@ extern "C" {
#endif #endif
#if defined (__cplusplus) || (defined (__STDC__) && __STDC__) #if defined (__cplusplus) || (defined (__STDC__) && __STDC__)
#undef __P # undef __P
#define __P(args) args # define __P(args) args
#else /* Not C++ or ANSI C. */ #else /* Not C++ or ANSI C. */
#undef __P # undef __P
#define __P(args) () # define __P(args) ()
/* We can get away without defining `const' here only because in this file /* 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 it is used only inside the prototype for `fnmatch', which is elided in
non-ANSI C where `const' is problematical. */ non-ANSI C where `const' is problematical. */
@ -50,9 +50,9 @@ extern "C" {
#define FNM_PERIOD (1 << 2) /* Leading `.' is matched only explicitly. */ #define FNM_PERIOD (1 << 2) /* Leading `.' is matched only explicitly. */
#if !defined (_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 2 || defined (_GNU_SOURCE) #if !defined (_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 2 || defined (_GNU_SOURCE)
#define FNM_FILE_NAME FNM_PATHNAME /* Preferred GNU name. */ # define FNM_FILE_NAME FNM_PATHNAME /* Preferred GNU name. */
#define FNM_LEADING_DIR (1 << 3) /* Ignore `/...' after a match. */ # define FNM_LEADING_DIR (1 << 3) /* Ignore `/...' after a match. */
#define FNM_CASEFOLD (1 << 4) /* Compare without regard to case. */ # define FNM_CASEFOLD (1 << 4) /* Compare without regard to case. */
#endif #endif
/* Value returned by `fnmatch' if STRING does not match PATTERN. */ /* Value returned by `fnmatch' if STRING does not match PATTERN. */

View file

@ -73,16 +73,16 @@
/* Define this to the subdirectory name of the default game */ /* Define this to the subdirectory name of the default game */
#ifdef NEWSTYLE #ifdef NEWSTYLE
# define BASEGAME "base" # define BASEGAME "base"
#else #else
# define BASEGAME "id1" # define BASEGAME "id1"
#endif #endif
/* Define this to the base directory for the client to download skins to */ /* Define this to the base directory for the client to download skins to */
#ifdef NEWSTYLE #ifdef NEWSTYLE
# define SKINBASE "base" # define SKINBASE "base"
#else #else
# define SKINBASE "qw" # define SKINBASE "qw"
#endif #endif
/* Define if you have the XFree86 DGA extension */ /* Define if you have the XFree86 DGA extension */
@ -284,26 +284,26 @@
/* Experimental 3DNOW support */ /* Experimental 3DNOW support */
#ifdef HAVE_3DNOW_ASM #ifdef HAVE_3DNOW_ASM
#define atan _atan # define atan _atan
#define atan2 _atan2 # define atan2 _atan2
#define acos _acos # define acos _acos
#define asin _asin # define asin _asin
#define log _log # define log _log
#define log10 _log10 # define log10 _log10
#define pow _pow # define pow _pow
#define exp _exp # define exp _exp
#define sqrt _sqrt # define sqrt _sqrt
#define fabs _fabs # define fabs _fabs
#define ceil _ceil # define ceil _ceil
#define floor _floor # define floor _floor
#define frexp _frexp # define frexp _frexp
#define ldexp _ldexp # define ldexp _ldexp
#define modf _modf # define modf _modf
#define fmod _fmod # define fmod _fmod
#define sincos _sincos # define sincos _sincos
#define sin _sin # define sin _sin
#define cos _cos # define cos _cos
#define tan _tan # define tan _tan
#endif #endif
#endif // _CONFIG_H #endif // _CONFIG_H

View file

@ -36,10 +36,10 @@
// Next default values for new objects // Next default values for new objects
// //
#ifdef APSTUDIO_INVOKED #ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS # ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 115 # define _APS_NEXT_RESOURCE_VALUE 115
#define _APS_NEXT_COMMAND_VALUE 40001 # define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1001 # define _APS_NEXT_CONTROL_VALUE 1001
#define _APS_NEXT_SYMED_VALUE 101 # define _APS_NEXT_SYMED_VALUE 101
#endif # endif
#endif #endif

View file

@ -294,26 +294,26 @@
#define strncasecmp(s1, s2, n) strnicmp((s1), (s2), (n)) #define strncasecmp(s1, s2, n) strnicmp((s1), (s2), (n))
#ifdef HAVE_3DNOW_ASM #ifdef HAVE_3DNOW_ASM
# define atan _atan # define atan _atan
# define atan2 _atan2 # define atan2 _atan2
# define acos _acos # define acos _acos
# define asin _asin # define asin _asin
# define log _log # define log _log
# define log10 _log10 # define log10 _log10
# define pow _pow # define pow _pow
# define exp _exp # define exp _exp
# define sqrt _sqrt # define sqrt _sqrt
# define fabs _fabs # define fabs _fabs
# define ceil _ceil # define ceil _ceil
# define floor _floor # define floor _floor
# define frexp _frexp # define frexp _frexp
# define ldexp _ldexp # define ldexp _ldexp
# define modf _modf # define modf _modf
# define fmod _fmod # define fmod _fmod
# define sincos _sincos # define sincos _sincos
# define sin _sin # define sin _sin
# define cos _cos # define cos _cos
# define tan _tan # define tan _tan
#endif #endif
#endif // _CONFIG_H #endif // _CONFIG_H

View file

@ -38,6 +38,7 @@
#include <windows.h> #include <windows.h>
#include <ddraw.h> #include <ddraw.h>
#include <dsound.h> #include <dsound.h>
#ifdef HAVE_MGRAPH_H #ifdef HAVE_MGRAPH_H
# include <mgraph.h> # include <mgraph.h>
#endif #endif

View file

@ -28,15 +28,14 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_WINDOWS_H #ifdef HAVE_WINDOWS_H
# include <windows.h> # include <windows.h>
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include <SDL.h> #include <SDL.h>

View file

@ -29,6 +29,7 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <windows.h> #include <windows.h>
#include "cdaudio.h" #include "cdaudio.h"

View file

@ -29,12 +29,11 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include "checksum.h" #include "checksum.h"

View file

@ -34,15 +34,15 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <math.h>
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include <math.h>
#include "cl_cam.h" #include "cl_cam.h"
#include "client.h" #include "client.h"
#include "commdef.h" #include "commdef.h"

View file

@ -29,12 +29,11 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include "client.h" #include "client.h"

View file

@ -32,18 +32,17 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#ifdef HAVE_SYS_TIME_H #ifdef HAVE_SYS_TIME_H
#include <sys/time.h> # include <sys/time.h>
#endif #endif
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> # include <unistd.h>
#endif #endif
#include "bothdefs.h" #include "bothdefs.h"

View file

@ -42,15 +42,15 @@
#include <conio.h> #include <conio.h>
#ifndef _WIN32 #ifndef _WIN32
#include <unistd.h> # include <unistd.h>
#include <stdarg.h> # include <stdarg.h>
#include <string.h> # include <string.h>
#include <ctype.h> # include <ctype.h>
#include <fcntl.h> # include <fcntl.h>
#include <signal.h> # include <signal.h>
#include <limits.h> # include <limits.h>
#include <sys/types.h> # include <sys/types.h>
#include <sys/mman.h> # include <sys/mman.h>
#endif #endif
#include <SDL.H> #include <SDL.H>

View file

@ -29,6 +29,7 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>

View file

@ -29,15 +29,15 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#include <math.h> #include <math.h>
#include <stdlib.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_ents.h"
#include "cl_main.h" #include "cl_main.h"

View file

@ -29,15 +29,15 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <ctype.h>
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include <ctype.h>
#include "cvar.h" #include "cvar.h"
#include "cmd.h" #include "cmd.h"
#include "console.h" #include "console.h"

View file

@ -29,17 +29,15 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <stdarg.h>
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
# include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
# include <strings.h> # include <strings.h>
#endif #endif
#include <stdarg.h>
#include "client.h" #include "client.h"
#include "cmd.h" #include "cmd.h"
#include "commdef.h" #include "commdef.h"

View file

@ -29,14 +29,18 @@
$Id$ $Id$
*/ */
#ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif
#include <ctype.h> #include <ctype.h>
#include <sys/time.h> #include <sys/time.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> # include <unistd.h>
#endif #endif
#include <signal.h> #include <signal.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>

View file

@ -32,15 +32,15 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
#include "commdef.h" #include "commdef.h"
#include "cvar.h" #include "cvar.h"

View file

@ -30,13 +30,13 @@
# include "config.h" # include "config.h"
#endif #endif
#include <stdlib.h>
#include "d_local.h" #include "d_local.h"
#include "qargs.h" #include "qargs.h"
#include "r_local.h" #include "r_local.h"
#include "sys.h" #include "sys.h"
#include <stdlib.h>
float surfscale; float surfscale;
qboolean r_cache_thrash; // set if surface cache is thrashing qboolean r_cache_thrash; // set if surface cache is thrashing

View file

@ -36,10 +36,10 @@
#include <X11/Xlib.h> #include <X11/Xlib.h>
#ifdef HAVE_DGA #ifdef HAVE_DGA
#include <X11/extensions/xf86dga.h> # include <X11/extensions/xf86dga.h>
#endif #endif
#ifdef HAVE_VIDMODE #ifdef HAVE_VIDMODE
#include <X11/extensions/xf86vmode.h> # include <X11/extensions/xf86vmode.h>
#endif #endif
#include "dga_check.h" #include "dga_check.h"

View file

@ -29,12 +29,11 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include "client.h" #include "client.h"

View file

@ -26,10 +26,12 @@
$Id$ $Id$
*/ */
#ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif
#ifndef _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE # define _GNU_SOURCE
#endif #endif
#include <errno.h> #include <errno.h>

View file

@ -1,7 +1,7 @@
/* /*
fractalnoise.c fractalnoise.c
LordHavocs fractial noise generator. LordHavocs fractal noise generator.
Copyright (C) 2000 Forest `LordHavoc` Hale. Copyright (C) 2000 Forest `LordHavoc` Hale.

View file

@ -29,13 +29,13 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include <stdio.h> #include <stdio.h>
#include "console.h" #include "console.h"

View file

@ -30,15 +30,15 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <stdio.h>
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include <math.h> #include <math.h>
#include <stdio.h>
#include "glquake.h" #include "glquake.h"
#include "sys.h" #include "sys.h"

View file

@ -30,19 +30,16 @@
# include "config.h" # include "config.h"
#endif #endif
#include <termios.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include "protocol.h" #include "protocol.h"
#include "cvar.h" #include "cvar.h"
#include "keys.h" #include "keys.h"
#include <termios.h>
#include <unistd.h>
cvar_t *_windowed_mouse; cvar_t *_windowed_mouse;
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
int int
fd_blocking (int fd, int on) fd_blocking (int fd, int on)
{ {

View file

@ -50,7 +50,7 @@
#ifdef WIN32 #ifdef WIN32
// fixme: this is evil... // fixme: this is evil...
#include <windows.h> # include <windows.h>
HWND mainwindow; HWND mainwindow;
#endif #endif

View file

@ -32,13 +32,12 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <vga.h> #include <vga.h>
#include <vgakeyboard.h> #include <vgakeyboard.h>
#include <vgamouse.h> #include <vgamouse.h>

View file

@ -42,7 +42,6 @@
#include "input.h" #include "input.h"
#include "cl_input.h" #include "cl_input.h"
#include "view.h" #include "view.h"
//#include "dosisms.h"
#include "host.h" #include "host.h"
#define DINPUT_BUFFERSIZE 16 #define DINPUT_BUFFERSIZE 16

View file

@ -32,30 +32,27 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #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 #define _BSD
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <ctype.h> #include <ctype.h>
#include <errno.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/Xlib.h>
#include <X11/keysym.h> #include <X11/keysym.h>
#ifdef HAVE_DGA #ifdef HAVE_DGA
#include <X11/extensions/XShm.h> # include <X11/extensions/XShm.h>
#include <X11/extensions/xf86dga.h> # include <X11/extensions/xf86dga.h>
#endif #endif
#include "cl_input.h" #include "cl_input.h"

View file

@ -29,15 +29,15 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
#include "console.h" #include "console.h"
#include "info.h" #include "info.h"

View file

@ -32,7 +32,6 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef __MINGW32__ #ifdef __MINGW32__
# define INITGUID # define INITGUID
#endif #endif

View file

@ -29,19 +29,19 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> # include <windows.h>
#endif #endif
#include <stdlib.h>
#include <ctype.h>
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include <stdlib.h>
#include <ctype.h>
#include "client.h" #include "client.h"
#include "cmd.h" #include "cmd.h"
#include "console.h" #include "console.h"

View file

@ -29,15 +29,15 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <limits.h>
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include <limits.h>
#include "client.h" #include "client.h"
#include "console.h" #include "console.h"
#include "locs.h" #include "locs.h"

View file

@ -29,24 +29,23 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_SYS_TIME_H #ifdef HAVE_SYS_TIME_H
#include <sys/time.h> # include <sys/time.h>
#endif #endif
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> # include <unistd.h>
#endif #endif
#ifdef HAVE_NETINET_IN_H #ifdef HAVE_NETINET_IN_H
#include <netinet/in.h> # include <netinet/in.h>
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#ifdef HAVE_WINDOWS_H #ifdef HAVE_WINDOWS_H
#include <windows.h> # include <windows.h>
#endif #endif
#include "cl_input.h" #include "cl_input.h"

View file

@ -32,15 +32,16 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <math.h>
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include <math.h>
#include "checksum.h" #include "checksum.h"
#include "cvar.h" #include "cvar.h"
#include "model.h" #include "model.h"

View file

@ -29,12 +29,11 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include "msg.h" #include "msg.h"

View file

@ -35,10 +35,10 @@
# include <windows.h> # include <windows.h>
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include <time.h> #include <time.h>

View file

@ -37,7 +37,7 @@
#include <errno.h> #include <errno.h>
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> # include <unistd.h>
#endif #endif
#include <sys/types.h> #include <sys/types.h>
@ -65,7 +65,7 @@
#endif #endif
#ifdef NeXT #ifdef NeXT
#include <libc.h> # include <libc.h>
#endif #endif
#include "console.h" #include "console.h"
@ -74,7 +74,7 @@
#include "qargs.h" #include "qargs.h"
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> # include <windows.h>
# undef EWOULDBLOCK # undef EWOULDBLOCK
# define EWOULDBLOCK WSAEWOULDBLOCK # define EWOULDBLOCK WSAEWOULDBLOCK
#endif #endif
@ -85,9 +85,9 @@
#ifndef HAVE_SOCKLEN_T #ifndef HAVE_SOCKLEN_T
# ifdef HAVE_SIZE # ifdef HAVE_SIZE
typedef size_t socklen_t; typedef size_t socklen_t;
# else # else
typedef unsigned int socklen_t; typedef unsigned int socklen_t;
# endif # endif
#endif #endif
@ -103,7 +103,7 @@ extern qboolean is_server;
byte net_message_buffer[MAX_UDP_PACKET]; byte net_message_buffer[MAX_UDP_PACKET];
#ifdef _WIN32 #ifdef _WIN32
WSADATA winsockdata; WSADATA winsockdata;
#endif #endif
//============================================================================= //=============================================================================

View file

@ -57,15 +57,16 @@
#endif #endif
#ifndef _WIN32 #ifndef _WIN32
#include <unistd.h> # include <unistd.h>
#endif #endif
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#ifdef HAVE_SYS_IOCTL_H #ifdef HAVE_SYS_IOCTL_H
# include <sys/ioctl.h> # include <sys/ioctl.h>
@ -89,7 +90,7 @@
#undef model_t #undef model_t
#ifdef NeXT #ifdef NeXT
#include <libc.h> # include <libc.h>
#endif #endif
#include "console.h" #include "console.h"
@ -99,12 +100,12 @@
#include "sys.h" #include "sys.h"
#ifndef MAXHOSTNAMELEN #ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 512 # define MAXHOSTNAMELEN 512
#endif #endif
#ifdef __GLIBC__ // glibc macro #ifdef __GLIBC__ // glibc macro
#define s6_addr32 in6_u.u6_addr32 # define s6_addr32 in6_u.u6_addr32
#define ss_family __ss_family # define ss_family __ss_family
#endif #endif
netadr_t net_local_adr; netadr_t net_local_adr;
@ -117,7 +118,7 @@ int net_socket;
byte net_message_buffer[MAX_UDP_PACKET]; byte net_message_buffer[MAX_UDP_PACKET];
#ifdef _WIN32 #ifdef _WIN32
WSADATA winsockdata; WSADATA winsockdata;
#endif #endif
//============================================================================= //=============================================================================

View file

@ -29,12 +29,11 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include "cl_parse.h" #include "cl_parse.h"

View file

@ -29,12 +29,11 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include "cmd.h" #include "cmd.h"

View file

@ -32,13 +32,13 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include <ctype.h> #include <ctype.h>
#include <stdlib.h> #include <stdlib.h>
#include <assert.h> #include <assert.h>

View file

@ -29,7 +29,6 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_DLFCN_H #ifdef HAVE_DLFCN_H
# include <dlfcn.h> # include <dlfcn.h>
#endif #endif
@ -59,10 +58,10 @@
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include "qfgl_ext.h" #include "qfgl_ext.h"

View file

@ -29,26 +29,19 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <stdlib.h>
#include <stdarg.h>
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
# include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
# include <strings.h> # include <strings.h>
#endif #endif
#include <ctype.h>
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#include <stdlib.h>
#include <stdarg.h>
#include <ctype.h>
#include <fcntl.h> #include <fcntl.h>
#include <dirent.h> #include <dirent.h>

View file

@ -31,17 +31,14 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_MALLOC_H #ifdef HAVE_MALLOC_H
# include <malloc.h> # include <malloc.h>
#endif #endif
#include <stdarg.h>
#include <stdlib.h>
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#ifdef WIN32 #ifdef WIN32
# include <io.h> # include <io.h>
@ -55,6 +52,9 @@
#ifdef _MSC_VER #ifdef _MSC_VER
# define _POSIX_ # define _POSIX_
#endif #endif
#include <stdarg.h>
#include <stdlib.h>
#include <limits.h> #include <limits.h>
#include "quakefs.h" #include "quakefs.h"

View file

@ -29,13 +29,13 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <string.h> # include <string.h>
#endif #endif
#include <math.h> #include <math.h>
#include "console.h" #include "console.h"

View file

@ -29,15 +29,15 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <stdlib.h>
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include <stdlib.h>
#include "bothdefs.h" #include "bothdefs.h"
#include "cl_cam.h" #include "cl_cam.h"
#include "client.h" #include "client.h"

View file

@ -29,15 +29,15 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <time.h>
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include <time.h>
#include "cl_parse.h" #include "cl_parse.h"
#include "client.h" #include "client.h"
#include "cmd.h" #include "cmd.h"

View file

@ -29,12 +29,11 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include "console.h" #include "console.h"

View file

@ -30,12 +30,12 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <fcntl.h> #include <fcntl.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_SYS_IOCTL_H #ifdef HAVE_SYS_IOCTL_H

View file

@ -30,12 +30,12 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <fcntl.h> #include <fcntl.h>
#include <sys/types.h> #include <sys/types.h>

View file

@ -29,13 +29,13 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include <stdlib.h> #include <stdlib.h>
#include "client.h" #include "client.h"

View file

@ -29,12 +29,11 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include "console.h" #include "console.h"

View file

@ -30,19 +30,19 @@
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include "console.h" #include "console.h"
#include "sound.h" #include "sound.h"
#ifdef _WIN32 #ifdef _WIN32
#include "winquake.h" # include "winquake.h"
#else #else
#define DWORD unsigned long # define DWORD unsigned long
#endif #endif
#define PAINTBUFFER_SIZE 512 #define PAINTBUFFER_SIZE 512

View file

@ -29,6 +29,7 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <SDL_audio.h> #include <SDL_audio.h>
#include <SDL_byteorder.h> #include <SDL_byteorder.h>

View file

@ -31,10 +31,10 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> # include <unistd.h>
#endif #endif
#include <fcntl.h> #include <fcntl.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>

View file

@ -29,15 +29,15 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <stdlib.h>
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include <stdlib.h>
#include "bothdefs.h" #include "bothdefs.h"
#include "cmd.h" #include "cmd.h"
#include "msg.h" #include "msg.h"

View file

@ -29,12 +29,11 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include "msg.h" #include "msg.h"

View file

@ -29,12 +29,11 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include "crc.h" #include "crc.h"

View file

@ -29,16 +29,16 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <stdarg.h>
#include <stdlib.h>
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
# include <strings.h> # include <strings.h>
#endif #endif
#include <stdarg.h>
#include <stdlib.h>
#include "bothdefs.h" #include "bothdefs.h"
#include "buildnum.h" #include "buildnum.h"
#include "cmd.h" #include "cmd.h"

View file

@ -30,10 +30,10 @@
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include "msg.h" #include "msg.h"

View file

@ -29,8 +29,9 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif
#include "cmd.h" #include "cmd.h"
#include "msg.h" #include "msg.h"

View file

@ -29,9 +29,11 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#include <stdarg.h> #include <stdarg.h>
#include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <time.h> #include <time.h>

View file

@ -30,6 +30,12 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
@ -38,12 +44,6 @@
#include <unistd.h> #include <unistd.h>
#include <sys/time.h> #include <sys/time.h>
#include <sys/types.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 "cvar.h"
#include "qargs.h" #include "qargs.h"
@ -51,7 +51,7 @@
#include "sys.h" #include "sys.h"
#ifdef NeXT #ifdef NeXT
#include <libc.h> # include <libc.h>
#endif #endif
cvar_t *sys_extrasleep; cvar_t *sys_extrasleep;

View file

@ -27,15 +27,15 @@
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include <errno.h> #include <errno.h>
#include "bothdefs.h" #include "bothdefs.h"

View file

@ -29,12 +29,11 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> # include <string.h>
#endif #endif
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
#include <strings.h> # include <strings.h>
#endif #endif
#include "qendian.h" #include "qendian.h"

View file

@ -39,7 +39,7 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#if defined(HAVE_SYS_IO_H) #ifdef HAVE_SYS_IO_H
# include <sys/io.h> # include <sys/io.h>
#elif defined(HAVE_ASM_IO_H) #elif defined(HAVE_ASM_IO_H)
# include <asm/io.h> # include <asm/io.h>

View file

@ -51,8 +51,8 @@
#ifdef WIN32 #ifdef WIN32
/* fixme: this is evil hack to get full DirectSound support with SDL */ /* fixme: this is evil hack to get full DirectSound support with SDL */
#include <windows.h> # include <windows.h>
#include <SDL_syswm.h> # include <SDL_syswm.h>
HWND mainwindow; HWND mainwindow;
#endif #endif

View file

@ -29,6 +29,7 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <windows.h> #include <windows.h>
#include "vid.h" #include "vid.h"

View file

@ -29,9 +29,6 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <stdio.h>
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
# include <string.h> # include <string.h>
#endif #endif
@ -39,6 +36,8 @@
# include <strings.h> # include <strings.h>
#endif #endif
#include <stdio.h>
#include "commdef.h" #include "commdef.h"
#include "console.h" #include "console.h"
#include "crc.h" #include "crc.h"

View file

@ -29,9 +29,6 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include <stdlib.h>
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
# include <string.h> # include <string.h>
#endif #endif
@ -39,6 +36,8 @@
# include <strings.h> # include <strings.h>
#endif #endif
#include <stdlib.h>
#include "cmd.h" #include "cmd.h"
#include "console.h" #include "console.h"
#include "qargs.h" #include "qargs.h"