Explorar o código

Compile constructor of aiMetadataType only for c++

Kim Kulling %!s(int64=5) %!d(string=hai) anos
pai
achega
6afb72216c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      include/assimp/metadata.h

+ 2 - 0
include/assimp/metadata.h

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