public: include tgmath in mathlib.h, so macros will be used inside Vector macros

This commit is contained in:
Alibek Omarov 2019-10-06 04:47:45 +03:00
parent 0577ecbccf
commit 14be566401
2 changed files with 5 additions and 3 deletions

View File

@ -16,12 +16,11 @@ GNU General Public License for more details.
#include "xash3d_types.h" #include "xash3d_types.h"
#include "const.h" #include "const.h"
#include "com_model.h" #include "com_model.h"
#include <math.h> #include "mathlib.h"
#include "eiface.h"
#ifdef HAVE_TGMATH_H #ifdef HAVE_TGMATH_H
#include <tgmath.h> #include <tgmath.h>
#endif #endif
#include "mathlib.h"
#include "eiface.h"
#define NUM_HULL_ROUNDS ARRAYSIZE( hull_table ) #define NUM_HULL_ROUNDS ARRAYSIZE( hull_table )
#define HULL_PRECISION 4 #define HULL_PRECISION 4

View File

@ -17,6 +17,9 @@ GNU General Public License for more details.
#define MATHLIB_H #define MATHLIB_H
#include <math.h> #include <math.h>
#ifdef HAVE_TGMATH_H
#include <tgmath.h>
#endif
#pragma warning(disable : 4201) // nonstandard extension used #pragma warning(disable : 4201) // nonstandard extension used