From 4ead264565f7761ca9be80c52e6aebae31be418b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 23 Nov 2021 23:12:20 +0100 Subject: [PATCH] doc: hey! MSVC 2015! hello! --- doc/snippets/MagnumGL.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/snippets/MagnumGL.cpp b/doc/snippets/MagnumGL.cpp index 0ba1752cb..305d0dc45 100644 --- a/doc/snippets/MagnumGL.cpp +++ b/doc/snippets/MagnumGL.cpp @@ -1112,6 +1112,8 @@ mesh.setIndexBuffer(indices, 0, type); /* [Mesh-indices-tool] */ } +/* The damn thing doesn't understand unnamed bitfields in local structs */ +#ifndef CORRADE_MSVC2015_COMPATIBILITY { GL::Mesh mesh; /* [Mesh-formats] */ @@ -1146,6 +1148,7 @@ mesh.addVertexBuffer(vertices, offsetof(Packed, normal), sizeof(Packed), VertexFormat::Vector3sNormalized}); /* [Mesh-formats-vertexformat] */ } +#endif { GL::Mesh mesh;