From 7b9342c348667d7c84f5352ca4218767de52c9dd Mon Sep 17 00:00:00 2001 From: Mikhail Romanko Date: Tue, 18 Aug 2026 10:42:42 +0300 Subject: [PATCH] Prevent name mangling in C++ --- CgePix.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CgePix.h b/CgePix.h index bb94720..baf871d 100644 --- a/CgePix.h +++ b/CgePix.h @@ -1,6 +1,10 @@ #ifndef CGE_PIX_H #define CGE_PIX_H +#ifdef __cplusplus +extern "C" { +#endif + #include #include @@ -170,4 +174,8 @@ void CgePixConvertRow(void *src, int srcFormat, int srcFlags, const CgeColor *srcPalette, void *dest, int destFormat, int destFlags, const CgeColor *destPalette, size_t count); +#ifdef __cplusplus +} +#endif + #endif /* CGE_PIX_H */