浏览代码

Compile constructor of aiMetadataType only for c++

Kim Kulling 5 年之前
父节点
当前提交
6afb72216c
共有 1 个文件被更改,包括 2 次插入0 次删除
  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