Przeglądaj źródła

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

Ryan C. Gordon 5 lat temu
rodzic
commit
3808b120dc
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8 0
      src/locale/SDL_syslocale.h

+ 8 - 0
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: */