From e3cd5a61b3da77a119b52ff8f39a5f9f0af6a761 Mon Sep 17 00:00:00 2001 From: Mikhail Romanko Date: Tue, 18 Aug 2026 10:43:02 +0300 Subject: [PATCH] Prevent name mangling in C++ --- CgeTimer.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CgeTimer.h b/CgeTimer.h index ba15f6d..c5a8681 100644 --- a/CgeTimer.h +++ b/CgeTimer.h @@ -1,10 +1,18 @@ #ifndef CGE_TIMER_H #define CGE_TIMER_H +#ifdef __cplusplus +extern "C" { +#endif + #include int CgeTimerIsMonotonic(void); uint64_t CgeTimerNanoseconds(void); uint64_t CgeTimerMilliseconds(void); +#ifdef __cplusplus +} +#endif + #endif /* CGE_TIMER_H */