goat3d
diff libs/vmath/vmath_config.h @ 28:9ba3e2fb8a33
modified vmath to work with vs2012, still memory corruptions in 3dsmax...
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 29 Sep 2013 08:46:19 +0300 |
parents | 4deb0b12fe14 |
children |
line diff
1.1 --- a/libs/vmath/vmath_config.h Sun Sep 29 08:20:19 2013 +0300 1.2 +++ b/libs/vmath/vmath_config.h Sun Sep 29 08:46:19 2013 +0300 1.3 @@ -1,11 +1,13 @@ 1.4 #ifndef VMATH_CONFIG_H_ 1.5 #define VMATH_CONFIG_H_ 1.6 1.7 -#if (__STDC_VERSION__ < 199999) 1.8 +#ifdef __cplusplus 1.9 +#define VMATH_INLINE inline 1.10 +#elif (__STDC_VERSION__ < 199999) 1.11 #if defined(__GNUC__) || defined(_MSC_VER) 1.12 -#define inline __inline 1.13 +#define VMATH_INLINE __inline 1.14 #else 1.15 -#define inline 1.16 +#define VMATH_INLINE 1.17 1.18 #ifdef VECTOR_H_ 1.19 #warning "compiling vector operations without inline, performance might suffer"