2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-26 03:39:16 +01:00

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 "const.h"
#include "com_model.h"
#include <math.h>
#include "mathlib.h"
#include "eiface.h"
#ifdef HAVE_TGMATH_H
#include <tgmath.h>
#endif
#include "mathlib.h"
#include "eiface.h"
#define NUM_HULL_ROUNDS ARRAYSIZE( hull_table )
#define HULL_PRECISION 4

View File

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