mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 01:11:15 +00:00
Route all inclusion of libc headers and most of POSIX headers through compat.h.
git-svn-id: https://svn.eduke32.com/eduke32@6074 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
22fbca52ca
commit
aa04307ad1
62 changed files with 41 additions and 211 deletions
|
@ -5,9 +5,6 @@
|
|||
*/
|
||||
// Bstring and C++ STL --> C conversion by Hendricks266
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "compat.h"
|
||||
|
||||
////////// Bstring //////////
|
||||
|
|
|
@ -19,10 +19,6 @@
|
|||
*/
|
||||
// DOS 16-bit real mode UI --> portable command line conversion by Hendricks266
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include "compat.h"
|
||||
|
||||
const char APP_NAME[] = "Build Game Customization Suite v0.2-EDuke32";
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
// XXX: This program is not in sync with EDuke32 (e.g. texcacheheader type).
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <dirent.h>
|
||||
#include <sys/stat.h>
|
||||
#include "compat.h"
|
||||
#include <dirent.h>
|
||||
|
||||
#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
|
||||
#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include "inttypes.h"
|
||||
#include "kplib.h"
|
||||
#include "compat.h"
|
||||
#include "kplib.h"
|
||||
|
||||
struct icon {
|
||||
int32_t width,height;
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <fcntl.h>
|
||||
#include "compat.h"
|
||||
|
||||
#define MAXNUMTILES 256
|
||||
|
||||
|
|
|
@ -1,14 +1,5 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <stdint.h>
|
||||
#define Bmemcmp memcmp
|
||||
#include "compat.h"
|
||||
#ifndef USE_OPENGL
|
||||
# define USE_OPENGL
|
||||
#endif
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include "compat.h"
|
||||
|
||||
typedef struct { float x, y, z; } point3d;
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
// gcc b.c -Lc:/mingw32/lib -lmingw32 -lSDLmain -lSDL
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "compat.h"
|
||||
#include "sdl_inc.h"
|
||||
|
||||
#include "sdlkeytrans.cpp"
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
#include <math.h>
|
||||
#include "compat.h"
|
||||
|
||||
#define PI 3.141592653589793
|
||||
|
|
|
@ -4,9 +4,6 @@
|
|||
#include "glbuild.h"
|
||||
#include "mdsprite.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
|
||||
|
||||
static md2head_t head;
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include "compat.h"
|
||||
|
||||
struct hsv {
|
||||
float h, s, v;
|
||||
|
|
|
@ -39,9 +39,7 @@
|
|||
NOTE: This program does not fall under BUILDLIC.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include "compat.h"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue