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.
#include "common.h" #include "common.h"
#include "mathlib.h" #include "mathlib.h"
#ifdef HAVE_TGMATH_H #if HAVE_TGMATH_H
#include <tgmath.h> #include <tgmath.h>
#endif #endif

2
public/crtlib.c

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

2
public/mathlib.c

@ -18,7 +18,7 @@ GNU General Public License for more details.
#include "com_model.h" #include "com_model.h"
#include "mathlib.h" #include "mathlib.h"
#include "eiface.h" #include "eiface.h"
#ifdef HAVE_TGMATH_H #if HAVE_TGMATH_H
#include <tgmath.h> #include <tgmath.h>
#endif #endif

2
public/mathlib.h

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

2
ref_gl/gl_beams.c

@ -22,7 +22,7 @@ GNU General Public License for more details.
#include "cl_tent.h" #include "cl_tent.h"
#include "pm_local.h" #include "pm_local.h"
#include "studio.h" #include "studio.h"
#ifdef HAVE_TGMATH_H #if HAVE_TGMATH_H
#include <tgmath.h> #include <tgmath.h>
#endif #endif

2
ref_gl/gl_rmain.c

@ -19,7 +19,7 @@ GNU General Public License for more details.
#include "beamdef.h" #include "beamdef.h"
#include "particledef.h" #include "particledef.h"
#include "entity_types.h" #include "entity_types.h"
#ifdef HAVE_TGMATH_H #if HAVE_TGMATH_H
#include <tgmath.h> #include <tgmath.h>
#endif #endif

2
ref_gl/gl_studio.c

@ -24,7 +24,7 @@ GNU General Public License for more details.
//#include "client.h" //#include "client.h"
#include "pmtrace.h" #include "pmtrace.h"
#ifdef HAVE_TGMATH_H #if HAVE_TGMATH_H
#include <tgmath.h> #include <tgmath.h>
#endif #endif

Loading…
Cancel
Save