From 14be5664017ed29e42940ddd0adc64d3d4023060 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 6 Oct 2019 04:47:45 +0300 Subject: [PATCH] public: include tgmath in mathlib.h, so macros will be used inside Vector macros --- public/mathlib.c | 5 ++--- public/mathlib.h | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/public/mathlib.c b/public/mathlib.c index 2e3a411e..35237b29 100644 --- a/public/mathlib.c +++ b/public/mathlib.c @@ -16,12 +16,11 @@ GNU General Public License for more details. #include "xash3d_types.h" #include "const.h" #include "com_model.h" -#include +#include "mathlib.h" +#include "eiface.h" #ifdef HAVE_TGMATH_H #include #endif -#include "mathlib.h" -#include "eiface.h" #define NUM_HULL_ROUNDS ARRAYSIZE( hull_table ) #define HULL_PRECISION 4 diff --git a/public/mathlib.h b/public/mathlib.h index 2a5b8feb..0f80e358 100644 --- a/public/mathlib.h +++ b/public/mathlib.h @@ -17,6 +17,9 @@ GNU General Public License for more details. #define MATHLIB_H #include +#ifdef HAVE_TGMATH_H +#include +#endif #pragma warning(disable : 4201) // nonstandard extension used