]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake2/qdata_heretic2/common/mathlib.c
Merge branch 'winconsole' into 'master'
[xonotic/netradiant.git] / tools / quake2 / qdata_heretic2 / common / mathlib.c
index 2fa7eabe710a28dbe3e57790504d7ed10ffe181f..8243d86d682da5bb43c799185e2acd8ae5bb8546 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
@@ -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];