build: fix spurious errors in VS2015 IDE

This commit is contained in:
Eric Wasylishen 2015-12-07 14:37:46 -08:00
parent 3f745a7225
commit 063786bf02
3 changed files with 6 additions and 4 deletions

View File

@ -41,6 +41,7 @@ typedef unsigned char byte;
#ifdef _MSC_VER #ifdef _MSC_VER
#define __func__ __FUNCTION__ #define __func__ __FUNCTION__
#define inline __inline
#endif #endif
#ifdef __GNUC__ #ifdef __GNUC__

View File

@ -24,10 +24,10 @@
#include <math.h> #include <math.h>
#ifdef DOUBLEVEC_T #ifdef DOUBLEVEC_T
typedef double vec_t; #define vec_t double
#define VECT_MAX DBL_MAX; #define VECT_MAX DBL_MAX;
#else #else
typedef float vec_t; #define vec_t float
#define VECT_MAX FLT_MAX; #define VECT_MAX FLT_MAX;
#endif #endif
typedef vec_t vec3_t[3]; typedef vec_t vec3_t[3];

View File

@ -44,6 +44,7 @@
#ifdef _MSC_VER #ifdef _MSC_VER
#define __func__ __FUNCTION__ #define __func__ __FUNCTION__
#define inline __inline
#endif #endif
#ifndef __GNUC__ #ifndef __GNUC__
@ -188,10 +189,10 @@ char *copystring(const char *s);
//===== mathlib.h //===== mathlib.h
#ifdef DOUBLEVEC_T #ifdef DOUBLEVEC_T
typedef double vec_t; #define vec_t double
#define VECT_MAX DBL_MAX #define VECT_MAX DBL_MAX
#else #else
typedef float vec_t; #define vec_t float
#define VECT_MAX FLT_MAX #define VECT_MAX FLT_MAX
#endif #endif
typedef vec_t vec3_t[3]; typedef vec_t vec3_t[3];