Browse Source

tgmath: remove including tgmath.h in everything that uses xash3d_mathlib, as it's included already

pull/2/head
Alibek Omarov 5 years ago
parent
commit
4c6fd79f07
  1. 3
      engine/common/gamma.c
  2. 3
      public/crtlib.c
  3. 3
      public/xash3d_mathlib.c
  4. 3
      ref_gl/gl_beams.c
  5. 3
      ref_gl/gl_rmain.c
  6. 4
      ref_gl/gl_studio.c

3
engine/common/gamma.c

@ -15,9 +15,6 @@ GNU General Public License for more details. @@ -15,9 +15,6 @@ GNU General Public License for more details.
#include "common.h"
#include "xash3d_mathlib.h"
#if HAVE_TGMATH_H
#include <tgmath.h>
#endif
//-----------------------------------------------------------------------------
// Gamma conversion support

3
public/crtlib.c

@ -21,9 +21,6 @@ GNU General Public License for more details. @@ -21,9 +21,6 @@ GNU General Public License for more details.
#include <time.h>
#include "stdio.h"
#include "crtlib.h"
#if HAVE_TGMATH_H
#include <tgmath.h>
#endif
void Q_strnupr( const char *in, char *out, size_t size_out )
{

3
public/xash3d_mathlib.c

@ -18,9 +18,6 @@ GNU General Public License for more details. @@ -18,9 +18,6 @@ GNU General Public License for more details.
#include "com_model.h"
#include "xash3d_mathlib.h"
#include "eiface.h"
#if HAVE_TGMATH_H
#include <tgmath.h>
#endif
#define NUM_HULL_ROUNDS ARRAYSIZE( hull_table )
#define HULL_PRECISION 4

3
ref_gl/gl_beams.c

@ -22,9 +22,6 @@ GNU General Public License for more details. @@ -22,9 +22,6 @@ GNU General Public License for more details.
#include "cl_tent.h"
#include "pm_local.h"
#include "studio.h"
#if HAVE_TGMATH_H
#include <tgmath.h>
#endif
#define NOISE_DIVISIONS 64 // don't touch - many tripmines cause the crash when it equal 128

3
ref_gl/gl_rmain.c

@ -19,9 +19,6 @@ GNU General Public License for more details. @@ -19,9 +19,6 @@ GNU General Public License for more details.
#include "beamdef.h"
#include "particledef.h"
#include "entity_types.h"
#if HAVE_TGMATH_H
#include <tgmath.h>
#endif
#define IsLiquidContents( cnt ) ( cnt == CONTENTS_WATER || cnt == CONTENTS_SLIME || cnt == CONTENTS_LAVA )

4
ref_gl/gl_studio.c

@ -24,10 +24,6 @@ GNU General Public License for more details. @@ -24,10 +24,6 @@ GNU General Public License for more details.
//#include "client.h"
#include "pmtrace.h"
#if HAVE_TGMATH_H
#include <tgmath.h>
#endif
#define EVENT_CLIENT 5000 // less than this value it's a server-side studio events
#define MAX_LOCALLIGHTS 4

Loading…
Cancel
Save