Browse Source

Compile constructor of aiMetadataType only for c++

Kim Kulling 5 years ago
parent
commit
6afb72216c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/assimp/metadata.h

+ 2 - 0
include/assimp/metadata.h

@@ -87,11 +87,13 @@ struct aiMetadataEntry {
     aiMetadataType mType;
     aiMetadataType mType;
     void *mData;
     void *mData;
 
 
+#ifdef __cplusplus
     aiMetadataEntry() :
     aiMetadataEntry() :
             mType(AI_META_MAX),
             mType(AI_META_MAX),
             mData( nullptr ) {
             mData( nullptr ) {
         // empty
         // empty
     }
     }
+#endif
 };
 };
 
 
 #ifdef __cplusplus
 #ifdef __cplusplus