Compile constructor of aiMetadataType only for c++

pull/3202/head
Kim Kulling 2020-05-04 20:50:44 +02:00 committed by GitHub
parent 3b4a9812e5
commit 6afb72216c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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