- removed compat.h entirely, all that was left was redundant #includes.

This commit is contained in:
Christoph Oelckers 2021-12-14 12:10:16 +01:00
parent 4daad25e5c
commit 0c83d299f2
4 changed files with 2 additions and 53 deletions

View file

@ -15,7 +15,6 @@
static_assert('\xff' == 255, "Char must be unsigned!");
#include "compat.h"
#include "printf.h"
#include "palette.h"
#include "binaryangle.h"

View file

@ -1,50 +0,0 @@
// Compatibility declarations for things which might not be present in
// certain build environments. It also levels the playing field caused
// by different platforms.
#ifndef compat_h_
#define compat_h_
#pragma once
#include "xs_Float.h"
#include "m_alloc.h"
#include "intvec.h"
#include "m_swap.h"
#include "vectors.h"
////////// Language and compiler feature polyfills //////////
#include <inttypes.h>
#include <stdint.h>
#include <limits.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if !(defined _WIN32 && defined __clang__)
#include <float.h>
#endif
#include <math.h>
#include <ctype.h>
#include <errno.h>
#include <time.h>
#include <assert.h>
# include <limits>
# include <algorithm>
# include <functional>
# include <type_traits>
////////// Platform headers //////////
#include "engineerrors.h"
#include "basics.h"
#endif // compat_h_

View file

@ -46,6 +46,7 @@
#include "m_argv.h"
#include "filesystem.h"
#include "findfile.h"
#include "engineerrors.h"
static const char* res_exts[] = { ".grp", ".zip", ".pk3", ".pk4", ".7z", ".pk7" };

View file

@ -1,4 +1,3 @@
/*
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
@ -10,6 +9,7 @@
#include <ctype.h>
#include <stdint.h>
#include <new>
#include <type_traits>
#include <algorithm>
#include <forward_list>
#include <sys/stat.h>
@ -26,4 +26,3 @@
// The overall savings from PCHing them are more significant.
#include "tarray.h"
#include "zstring.h"
*/