Browse Source

Support compiling with GCC 3.4.3

half-secret
Alibek Omarov 5 years ago
parent
commit
b00170a0a2
  1. 4
      common/com_model.h
  2. 4
      common/mathlib.h
  3. 7
      dlls/extdll.h

4
common/com_model.h

@ -173,7 +173,7 @@ typedef struct mleaf_s @@ -173,7 +173,7 @@ typedef struct mleaf_s
} mleaf_t;
typedef struct msurface_s
struct msurface_s
{
int visframe; // should be drawn when node is crossed
@ -205,7 +205,7 @@ typedef struct msurface_s @@ -205,7 +205,7 @@ typedef struct msurface_s
color24 *samples; // note: this is the actual lightmap data for this surface
decal_t *pdecals;
} msurface_t;
};
typedef struct msurfmesh_s
{

4
common/mathlib.h

@ -19,14 +19,12 @@ @@ -19,14 +19,12 @@
#include <math.h>
typedef float vec_t;
typedef vec_t vec2_t[2];
#ifndef DID_VEC3_T_DEFINE
#if !defined DID_VEC3_T_DEFINE
#define DID_VEC3_T_DEFINE
typedef vec_t vec3_t[3];
#endif
typedef vec_t vec4_t[4]; // x,y,z,w
#ifndef M_PI
#define M_PI 3.14159265358979323846 // matches value in gcc v2 math.h

7
dlls/extdll.h

@ -51,12 +51,15 @@ @@ -51,12 +51,15 @@
#ifndef TRUE
#define TRUE (!FALSE)
#endif
#include <limits.h>
#include <stdarg.h>
typedef unsigned int ULONG;
typedef unsigned char BYTE;
typedef int BOOL;
#define MAX_PATH PATH_MAX
#include <limits.h>
#include <stdarg.h>
#ifndef PATH_MAX
#define PATH_MAX 4096
#endif
#endif //_WIN32
// Misc C-runtime library headers

Loading…
Cancel
Save