From 8f1bd2ef53cc8f45c16efcf23918ebeeb275e7d2 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 13 Jul 2024 14:00:37 +0200 Subject: Made the header usable from C++ --- FICS/utils.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'FICS') diff --git a/FICS/utils.h b/FICS/utils.h index 88f3cc9..529a3db 100644 --- a/FICS/utils.h +++ b/FICS/utils.h @@ -55,6 +55,10 @@ #define ClearFlag(VAR, FLAG) (VAR &= ~(FLAG)) #define CheckFlag(VAR, FLAG) (VAR & (FLAG)) +#ifdef __cplusplus +extern "C" { +#endif + extern char *dotQuad(unsigned int); extern char *eattailwhite(char *); extern char *eatwhite(char *); @@ -107,4 +111,8 @@ extern unsigned int tenth_secs(void); //extern void pprintf_dohightlight(int); //extern void sprintf_dohightlight(int, char *); +#ifdef __cplusplus +} +#endif + #endif /* _UTILS_H */ -- cgit v1.2.3