Browse Source

Old GCC version check in as_callfunc_x86.cpp for CI.

Lasse Öörni 9 years ago
parent
commit
459923949c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/ThirdParty/AngelScript/source/as_callfunc_x86.cpp

+ 2 - 2
Source/ThirdParty/AngelScript/source/as_callfunc_x86.cpp

@@ -51,8 +51,8 @@
 #include "as_tokendef.h"
 #include "as_tokendef.h"
 #include "as_context.h"
 #include "as_context.h"
 
 
-// Urho3D: work around Clang crash
-#ifdef __clang__
+// Urho3D: work around Clang crash and error on old GCC
+#if defined(__clang__) || (__GNUC__ == 4 && __GNUC_MINOR__ < 7) || __GNUC__ < 4
 #undef __OPTIMIZE__
 #undef __OPTIMIZE__
 #endif
 #endif