Browse Source

GCC 4.6 compatibility: friend declaration needs class keyword.

Vladimír Vondruš 11 years ago
parent
commit
9ac772f1a6
  1. 9
      src/Magnum/Platform/NaClApplication.h

9
src/Magnum/Platform/NaClApplication.h

@ -578,7 +578,8 @@ See also @ref InputEvent for more information.
@see @ref keyPressEvent(), @ref keyReleaseEvent() @see @ref keyPressEvent(), @ref keyReleaseEvent()
*/ */
class NaClApplication::KeyEvent: public NaClApplication::InputEvent { class NaClApplication::KeyEvent: public NaClApplication::InputEvent {
friend NaClApplication; /* GCC 4.6 needs the class keyword */
friend class NaClApplication;
public: public:
/** /**
@ -673,7 +674,8 @@ See also @ref InputEvent for more information.
@see @ref MouseMoveEvent, @ref mousePressEvent(), @ref mouseReleaseEvent() @see @ref MouseMoveEvent, @ref mousePressEvent(), @ref mouseReleaseEvent()
*/ */
class NaClApplication::MouseEvent: public NaClApplication::InputEvent { class NaClApplication::MouseEvent: public NaClApplication::InputEvent {
friend NaClApplication; /* GCC 4.6 needs the class keyword */
friend class NaClApplication;
public: public:
/** /**
@ -715,7 +717,8 @@ See also @ref InputEvent for more information.
@see @ref MouseEvent, @ref mouseMoveEvent() @see @ref MouseEvent, @ref mouseMoveEvent()
*/ */
class NaClApplication::MouseMoveEvent: public NaClApplication::InputEvent { class NaClApplication::MouseMoveEvent: public NaClApplication::InputEvent {
friend NaClApplication; /* GCC 4.6 needs the class keyword */
friend class NaClApplication;
public: public:
/** @brief Position */ /** @brief Position */

Loading…
Cancel
Save