From 2756101d0e3b2a044e3e13a53421512c86dc5ba5 Mon Sep 17 00:00:00 2001 From: Andy Nichols Date: Sun, 8 Apr 2012 15:50:02 +0200 Subject: Fixed build issue when using GLEW with MSVC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MSVC does not support the #warning precompiler command and is considered an error when used. This change checks for GCC before issuing the warning. Change-Id: Iee1e27841fe77b0289e88b7b4ccaa176ab56a39d Reviewed-by: Samuel Rødal --- src/opengl/qglfunctions.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/opengl/qglfunctions.h') diff --git a/src/opengl/qglfunctions.h b/src/opengl/qglfunctions.h index da3ce7db4d..0cb0b712ba 100644 --- a/src/opengl/qglfunctions.h +++ b/src/opengl/qglfunctions.h @@ -43,9 +43,11 @@ #define QGLFUNCTIONS_H #ifdef __GLEW_H__ +#if defined(Q_CC_GNU) #warning qglfunctions.h is not compatible with GLEW, GLEW defines will be undefined #warning To use GLEW with Qt, do not include or after glew.h #endif +#endif #include #include -- cgit v1.2.3