From 3808b120dcd80a7a5eb1a2ab52fd1de40a93c7eb Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 19 May 2020 03:14:46 -0400 Subject: [PATCH] locale: Make sure C++ implementations (Haiku!) use C linkage. --- src/locale/SDL_syslocale.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/locale/SDL_syslocale.h b/src/locale/SDL_syslocale.h index b83a809ed5eb5..887baa06336f6 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: */