From 052a13b38de75f5c7a7ea18cc28b08be06e29a15 Mon Sep 17 00:00:00 2001 From: coco875 <59367621+coco875@users.noreply.github.com> Date: Tue, 5 Aug 2025 23:20:55 +0200 Subject: [PATCH] add extern C for cpp --- lib/n64graphics/n64graphics.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/n64graphics/n64graphics.h b/lib/n64graphics/n64graphics.h index 98cbdcd..f842b3b 100644 --- a/lib/n64graphics/n64graphics.h +++ b/lib/n64graphics/n64graphics.h @@ -1,6 +1,10 @@ #ifndef N64GRAPHICS_H_ #define N64GRAPHICS_H_ +#ifdef __cplusplus +extern "C" { +#endif + #include // intermediate formats @@ -125,4 +129,8 @@ const char *n64graphics_get_read_version(void); // get version of underlying graphics writing library const char *n64graphics_get_write_version(void); +#ifdef __cplusplus +} +#endif + #endif // N64GRAPHICS_H_ \ No newline at end of file