From fc955a5f8a7786c49d5c3023218ebb7adcea66e0 Mon Sep 17 00:00:00 2001 From: contriteobserver Date: Wed, 3 Mar 2021 12:23:26 -0800 Subject: [PATCH] applied extern "C" guards to importerdesc.h addresses #3685 --- include/assimp/importerdesc.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/assimp/importerdesc.h b/include/assimp/importerdesc.h index b1a4e3e8e..037f2e7a4 100644 --- a/include/assimp/importerdesc.h +++ b/include/assimp/importerdesc.h @@ -52,6 +52,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include +#ifdef __cplusplus +extern "C" { +#endif + /** Mixed set of flags for #aiImporterDesc, indicating some features * common to many importers*/ enum aiImporterFlags { @@ -143,4 +147,8 @@ Will return a nullptr if no assigned importer desc. was found for the given exte */ ASSIMP_API const C_STRUCT aiImporterDesc *aiGetImporterDesc(const char *extension); +#ifdef __cplusplus +} // end of extern "C" +#endif + #endif // AI_IMPORTER_DESC_H_INC