mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-21 00:20:59 +00:00
56 lines
1,011 B
C
56 lines
1,011 B
C
// 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 //////////
|
|
|
|
#ifdef WORDS_BIGENDIAN
|
|
# define B_BIG_ENDIAN 1
|
|
#else
|
|
# define B_BIG_ENDIAN 0
|
|
#endif
|
|
|
|
#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_
|