Commit 3808b120dcd80a7a5eb1a2ab52fd1de40a93c7eb

Ryan C. Gordon 2020-05-19T03:14:46

locale: Make sure C++ implementations (Haiku!) use C linkage.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/src/locale/SDL_syslocale.h b/src/locale/SDL_syslocale.h
index b83a809..887baa0 100644
--- a/src/locale/SDL_syslocale.h
+++ b/src/locale/SDL_syslocale.h
@@ -24,6 +24,14 @@
 
 #include "SDL_locale.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 extern void SDL_SYS_GetPreferredLocales(char *buf, size_t buflen);
 
+#ifdef __cplusplus
+}
+#endif
+
 /* vi: set ts=4 sw=4 expandtab: */