From 51b000d03ad95c14e5d264f2ba0e8e0e0bf05821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 4 Jan 2014 01:36:13 +0100 Subject: [PATCH] GCC 4.5 compatibility: no forward declarations for enums. --- src/Context.h | 4 ++++ src/Platform/AbstractXApplication.h | 4 ++++ src/Platform/GlutApplication.h | 4 ++++ src/Platform/Sdl2Application.h | 4 ++++ src/Shader.h | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/src/Context.h b/src/Context.h index e6837c6bb..55a43478a 100644 --- a/src/Context.h +++ b/src/Context.h @@ -37,6 +37,10 @@ #include "OpenGL.h" #include "magnumVisibility.h" +#ifdef CORRADE_GCC45_COMPATIBILITY +#include "Version.h" +#endif + namespace Magnum { /** @todoc Resolve conflict with Audio/Context.h (Doxygen doesn't list this file) */ diff --git a/src/Platform/AbstractXApplication.h b/src/Platform/AbstractXApplication.h index 46e03dc39..bffe59a99 100644 --- a/src/Platform/AbstractXApplication.h +++ b/src/Platform/AbstractXApplication.h @@ -41,6 +41,10 @@ #include "Math/Vector2.h" +#ifdef CORRADE_GCC45_COMPATIBILITY +#include "Version.h" +#endif + namespace Magnum { class Context; diff --git a/src/Platform/GlutApplication.h b/src/Platform/GlutApplication.h index acf8cd526..814d86556 100644 --- a/src/Platform/GlutApplication.h +++ b/src/Platform/GlutApplication.h @@ -38,6 +38,10 @@ #include "OpenGL.h" #include +#ifdef CORRADE_GCC45_COMPATIBILITY +#include "Version.h" +#endif + namespace Magnum { class Context; diff --git a/src/Platform/Sdl2Application.h b/src/Platform/Sdl2Application.h index fc10169ac..e9e14ad64 100644 --- a/src/Platform/Sdl2Application.h +++ b/src/Platform/Sdl2Application.h @@ -42,6 +42,10 @@ #include #include +#ifdef CORRADE_GCC45_COMPATIBILITY +#include "Version.h" +#endif + namespace Magnum { class Context; diff --git a/src/Shader.h b/src/Shader.h index 57680b960..ec8b0b33f 100644 --- a/src/Shader.h +++ b/src/Shader.h @@ -35,6 +35,10 @@ #include "Magnum.h" #include "magnumVisibility.h" +#ifdef CORRADE_GCC45_COMPATIBILITY +#include "Version.h" +#endif + namespace Magnum { /**