Unverified Commit 3e7bdc07 authored by Conrad Poelman's avatar Conrad Poelman Committed by GitHub
Browse files

Name unnamed typedef struct {...} to fix MSVC error

Compile with latest MSVC 16.6.0 Preview Release, got error message:
> osgPlugins\x\types.h(41,20): error C7626: unnamed class used in typedef name cannot declare members other than non-static data members, member enumerations, or member classes (compiling source file ...3rdparty\OpenSceneGraph\src\osgPlugins\x\mesh.cpp)

The fix was just to give it a name, which will never be used. I picked Vector_struct, feel free to improve.
parent f2f22df8
......@@ -38,7 +38,7 @@ namespace DX {
// Vector
typedef struct {
typedef struct Vector_struct {
float x,y,z;
inline void normalize() {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment