Browse Source

xash3d-fwgs: check if HAVE_TGMATH_H is set to positive value rather it's just defined

pull/2/head
Alibek Omarov 5 years ago
parent
commit
15924aebaa
  1. 2
      engine/common/gamma.c
  2. 2
      public/crtlib.c
  3. 2
      public/mathlib.c
  4. 2
      public/mathlib.h
  5. 2
      ref_gl/gl_beams.c
  6. 2
      ref_gl/gl_rmain.c
  7. 2
      ref_gl/gl_studio.c

2
engine/common/gamma.c

@ -15,7 +15,7 @@ GNU General Public License for more details. @@ -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 <tgmath.h>
#endif

2
public/crtlib.c

@ -21,7 +21,7 @@ GNU General Public License for more details. @@ -21,7 +21,7 @@ GNU General Public License for more details.
#include <time.h>
#include "stdio.h"
#include "crtlib.h"
#ifdef HAVE_TGMATH_H
#if HAVE_TGMATH_H
#include <tgmath.h>
#endif

2
public/mathlib.c

@ -18,7 +18,7 @@ GNU General Public License for more details. @@ -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 <tgmath.h>
#endif

2
public/mathlib.h

@ -17,7 +17,7 @@ GNU General Public License for more details. @@ -17,7 +17,7 @@ GNU General Public License for more details.
#define MATHLIB_H
#include <math.h>
#ifdef HAVE_TGMATH_H
#if HAVE_TGMATH_H
#include <tgmath.h>
#endif

2
ref_gl/gl_beams.c

@ -22,7 +22,7 @@ GNU General Public License for more details. @@ -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 <tgmath.h>
#endif

2
ref_gl/gl_rmain.c

@ -19,7 +19,7 @@ GNU General Public License for more details. @@ -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 <tgmath.h>
#endif

2
ref_gl/gl_studio.c

@ -24,7 +24,7 @@ GNU General Public License for more details. @@ -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 <tgmath.h>
#endif

Loading…
Cancel
Save