From 15924aebaadd4c12286fc40d190e55baf230c537 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 5 Nov 2019 01:41:35 +0300 Subject: [PATCH] xash3d-fwgs: check if HAVE_TGMATH_H is set to positive value rather it's just defined --- engine/common/gamma.c | 2 +- public/crtlib.c | 2 +- public/mathlib.c | 2 +- public/mathlib.h | 2 +- ref_gl/gl_beams.c | 2 +- ref_gl/gl_rmain.c | 2 +- ref_gl/gl_studio.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/engine/common/gamma.c b/engine/common/gamma.c index 103156eb..955d52bd 100644 --- a/engine/common/gamma.c +++ b/engine/common/gamma.c @@ -15,7 +15,7 @@ GNU General Public License for more details. #include "common.h" #include "mathlib.h" -#ifdef HAVE_TGMATH_H +#if HAVE_TGMATH_H #include #endif diff --git a/public/crtlib.c b/public/crtlib.c index a4bd64d5..e74febb5 100644 --- a/public/crtlib.c +++ b/public/crtlib.c @@ -21,7 +21,7 @@ GNU General Public License for more details. #include #include "stdio.h" #include "crtlib.h" -#ifdef HAVE_TGMATH_H +#if HAVE_TGMATH_H #include #endif diff --git a/public/mathlib.c b/public/mathlib.c index 35237b29..5761429c 100644 --- a/public/mathlib.c +++ b/public/mathlib.c @@ -18,7 +18,7 @@ GNU General Public License for more details. #include "com_model.h" #include "mathlib.h" #include "eiface.h" -#ifdef HAVE_TGMATH_H +#if HAVE_TGMATH_H #include #endif diff --git a/public/mathlib.h b/public/mathlib.h index 4a9e730e..f3fc0db3 100644 --- a/public/mathlib.h +++ b/public/mathlib.h @@ -17,7 +17,7 @@ GNU General Public License for more details. #define MATHLIB_H #include -#ifdef HAVE_TGMATH_H +#if HAVE_TGMATH_H #include #endif diff --git a/ref_gl/gl_beams.c b/ref_gl/gl_beams.c index 14b74538..c5c5625a 100644 --- a/ref_gl/gl_beams.c +++ b/ref_gl/gl_beams.c @@ -22,7 +22,7 @@ GNU General Public License for more details. #include "cl_tent.h" #include "pm_local.h" #include "studio.h" -#ifdef HAVE_TGMATH_H +#if HAVE_TGMATH_H #include #endif diff --git a/ref_gl/gl_rmain.c b/ref_gl/gl_rmain.c index fe5adf7d..8e6c9fe2 100644 --- a/ref_gl/gl_rmain.c +++ b/ref_gl/gl_rmain.c @@ -19,7 +19,7 @@ GNU General Public License for more details. #include "beamdef.h" #include "particledef.h" #include "entity_types.h" -#ifdef HAVE_TGMATH_H +#if HAVE_TGMATH_H #include #endif diff --git a/ref_gl/gl_studio.c b/ref_gl/gl_studio.c index 0eb3f297..c5c334c6 100644 --- a/ref_gl/gl_studio.c +++ b/ref_gl/gl_studio.c @@ -24,7 +24,7 @@ GNU General Public License for more details. //#include "client.h" #include "pmtrace.h" -#ifdef HAVE_TGMATH_H +#if HAVE_TGMATH_H #include #endif