Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
Support compiling with GCC 3.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Oct 26, 2019
1 parent 6dff6e3 commit b00170a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions common/com_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
{
Expand Down
4 changes: 1 addition & 3 deletions common/mathlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions dlls/extdll.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b00170a

Please sign in to comment.