Restrice optimisation pragmas to GCC

This commit is contained in:
Danny Robson 2012-06-13 15:50:17 +10:00
parent d968bd8549
commit b08a47e68f
2 changed files with 5 additions and 1 deletions

View File

@ -25,7 +25,9 @@
using namespace std;
#pragma GCC optimize("-O3")
#if defined(COMPILER_GCC)
#pragma GCC optimize("-O3")
#endif
//-----------------------------------------------------------------------------
template <size_t S>

View File

@ -28,7 +28,9 @@
#include <limits>
#include <numeric>
#if defined(COMPILER_GCC)
#pragma GCC optimize("-O3")
#endif
//-----------------------------------------------------------------------------
using namespace util;