Browse Source

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

pull/2/head
Alibek Omarov 5 years ago
parent
commit
14be566401
  1. 5
      public/mathlib.c
  2. 3
      public/mathlib.h

5
public/mathlib.c

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

3
public/mathlib.h

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

Loading…
Cancel
Save