Browse Source

Trade: work around MSVC 2015 parser warts.

pull/499/head
Vladimír Vondruš 3 years ago
parent
commit
51a68a3fef
  1. 6
      src/Magnum/Trade/SceneData.cpp

6
src/Magnum/Trade/SceneData.cpp

@ -640,7 +640,11 @@ namespace {
inline Long extractStringFieldOffset(const UnsignedLong strideOffset) {
union {
struct {
Short:16;
Short
#ifdef CORRADE_MSVC2015_COMPATIBILITY
_dummy /* "error C2059: syntax error: ':'" otherwise, heh */
#endif
:16;
Long offset:48;
} s;
UnsignedLong u;

Loading…
Cancel
Save