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:
hendricks266 2017-02-25 08:15:36 +00:00
parent 22fbca52ca
commit aa04307ad1
62 changed files with 41 additions and 211 deletions

View file

@ -5,9 +5,6 @@
*/
// Bstring and C++ STL --> C conversion by Hendricks266
#include <stdio.h>
#include <string.h>
#include "compat.h"
////////// Bstring //////////

View file

@ -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";

View file

@ -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

View file

@ -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;

View file

@ -1,6 +1,4 @@
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include "compat.h"
#define MAXNUMTILES 256

View file

@ -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

View file

@ -1,6 +1,4 @@
#include <stdio.h>
#include <math.h>
#include "compat.h"
typedef struct { float x, y, z; } point3d;

View file

@ -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"

View file

@ -1,5 +1,3 @@
#include <math.h>
#include "compat.h"
#define PI 3.141592653589793

View file

@ -4,9 +4,6 @@
#include "glbuild.h"
#include "mdsprite.h"
#include <stdio.h>
#include <errno.h>
static md2head_t head;

View file

@ -1,6 +1,4 @@
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "compat.h"
struct hsv {
float h, s, v;

View file

@ -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)
{