From 9ac772f1a69b1ea8506791a76ea26aae495ea171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 2 May 2015 23:56:06 +0200 Subject: [PATCH] GCC 4.6 compatibility: friend declaration needs class keyword. --- src/Magnum/Platform/NaClApplication.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Magnum/Platform/NaClApplication.h b/src/Magnum/Platform/NaClApplication.h index 4d3115e1b..2c4b864df 100644 --- a/src/Magnum/Platform/NaClApplication.h +++ b/src/Magnum/Platform/NaClApplication.h @@ -578,7 +578,8 @@ See also @ref InputEvent for more information. @see @ref keyPressEvent(), @ref keyReleaseEvent() */ class NaClApplication::KeyEvent: public NaClApplication::InputEvent { - friend NaClApplication; + /* GCC 4.6 needs the class keyword */ + friend class NaClApplication; public: /** @@ -673,7 +674,8 @@ See also @ref InputEvent for more information. @see @ref MouseMoveEvent, @ref mousePressEvent(), @ref mouseReleaseEvent() */ class NaClApplication::MouseEvent: public NaClApplication::InputEvent { - friend NaClApplication; + /* GCC 4.6 needs the class keyword */ + friend class NaClApplication; public: /** @@ -715,7 +717,8 @@ See also @ref InputEvent for more information. @see @ref MouseEvent, @ref mouseMoveEvent() */ class NaClApplication::MouseMoveEvent: public NaClApplication::InputEvent { - friend NaClApplication; + /* GCC 4.6 needs the class keyword */ + friend class NaClApplication; public: /** @brief Position */