]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake2/qdata_heretic2/common/mathlib.c
Centralise compile checks
[xonotic/netradiant.git] / tools / quake2 / qdata_heretic2 / common / mathlib.c
index 2fa7eabe710a28dbe3e57790504d7ed10ffe181f..ae61e4b3a9ce0a7364160e3c964153da50c7a33f 100644 (file)
@@ -94,8 +94,10 @@ void _VectorScale( vec3_t v, vec_t scale, vec3_t out ){
        out[2] = v[2] * scale;
 }
 
+#if GDEF_COMPILER_MSVC
 #pragma optimize("g", off)  // went back to turning optimization off,
                             // the bug_fix thing stopped working
+#endif
 
 vec_t VectorNormalize( vec3_t in, vec3_t out ){
        vec_t length, ilength;
@@ -136,7 +138,9 @@ vec_t ColorNormalize( vec3_t in, vec3_t out ){
        return max;
 }
 
+#if GDEF_COMPILER_MSVC
 #pragma optimize("", on)
+#endif
 
 void VectorInverse( vec3_t v ){
        v[0] = -v[0];