diff --git a/test/comprehensive.cpp b/test/comprehensive.cpp index 410bd243..427ed2d8 100644 --- a/test/comprehensive.cpp +++ b/test/comprehensive.cpp @@ -15,7 +15,9 @@ #include // for pow() #include -#if defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730 +#if defined(__sgi) \ + && ( (defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730) \ + && !defined(__GNUC__)) inline double pow(int x, int y) { return pow(static_cast(x), y); } #endif