locale: Make sure C++ implementations (Haiku!) use C linkage.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 19 May 2020 03:14:46 -0400
changeset 13827a4bf87033fd5
parent 13826 00960a08b393
child 13828 2fb45c5c0563
locale: Make sure C++ implementations (Haiku!) use C linkage.
src/locale/SDL_syslocale.h
     1.1 --- a/src/locale/SDL_syslocale.h	Tue May 19 02:59:02 2020 -0400
     1.2 +++ b/src/locale/SDL_syslocale.h	Tue May 19 03:14:46 2020 -0400
     1.3 @@ -24,6 +24,14 @@
     1.4  
     1.5  #include "SDL_locale.h"
     1.6  
     1.7 +#ifdef __cplusplus
     1.8 +extern "C" {
     1.9 +#endif
    1.10 +
    1.11  extern void SDL_SYS_GetPreferredLocales(char *buf, size_t buflen);
    1.12  
    1.13 +#ifdef __cplusplus
    1.14 +}
    1.15 +#endif
    1.16 +
    1.17  /* vi: set ts=4 sw=4 expandtab: */