From fad51e216c04837e318905b5da1c54cdd4f6ad4d Mon Sep 17 00:00:00 2001 From: Sergej Reich Date: Tue, 24 Mar 2020 06:14:14 +0100 Subject: [PATCH] Add extern "C" directive --- fast_obj.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fast_obj.h b/fast_obj.h index 31434be..a1ed4fb 100644 --- a/fast_obj.h +++ b/fast_obj.h @@ -132,10 +132,17 @@ typedef struct } fastObjMesh; +#ifdef __cplusplus +extern "C" { +#endif fastObjMesh* fast_obj_read(const char* path); void fast_obj_destroy(fastObjMesh* mesh); +#ifdef __cplusplus +} +#endif + #endif