Browse Source

GCC 4.5 compatibility: no forward declarations for enums.

Vladimír Vondruš 13 years ago
parent
commit
5a84d4d572
  1. 3
      src/Magnum.h
  2. 4
      src/Trade/MeshData2D.h
  3. 4
      src/Trade/MeshData3D.h

3
src/Magnum.h

@ -589,8 +589,9 @@ typedef ImageReference<1> ImageReference1D;
typedef ImageReference<2> ImageReference2D; typedef ImageReference<2> ImageReference2D;
typedef ImageReference<3> ImageReference3D; typedef ImageReference<3> ImageReference3D;
#ifndef CORRADE_GCC45_COMPATIBILITY
enum class MeshPrimitive: GLenum; enum class MeshPrimitive: GLenum;
#endif
class Mesh; class Mesh;
class MeshView; class MeshView;

4
src/Trade/MeshData2D.h

@ -34,6 +34,10 @@
#include "magnumVisibility.h" #include "magnumVisibility.h"
#ifdef CORRADE_GCC45_COMPATIBILITY
#include "Mesh.h"
#endif
namespace Magnum { namespace Trade { namespace Magnum { namespace Trade {
/** /**

4
src/Trade/MeshData3D.h

@ -34,6 +34,10 @@
#include "magnumVisibility.h" #include "magnumVisibility.h"
#ifdef CORRADE_GCC45_COMPATIBILITY
#include "Mesh.h"
#endif
namespace Magnum { namespace Trade { namespace Magnum { namespace Trade {
/** /**

Loading…
Cancel
Save