aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-07-13 14:00:37 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-07-13 14:00:37 +0200
commit8f1bd2ef53cc8f45c16efcf23918ebeeb275e7d2 (patch)
treec7f20e6fbdae9ce5ce99b1b12e1ffc38f36965c9 /FICS
parent5f5cca52edf6ce418d8b8f76b578cbd24d8f7d0f (diff)
Made the header usable from C++
Diffstat (limited to 'FICS')
-rw-r--r--FICS/utils.h8
1 files changed, 8 insertions, 0 deletions
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 */