X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=internals%2F_PDCLIB_locale.h;h=f120748818245813655be67d5fe8b6718c0a0487;hp=3159dfb22d914548ce33324fc96d5c4be76e128d;hb=e0a1864c7e4dbd4d482379b1bb6fd56b5ac68617;hpb=d2f319233da9144ea76930ea939a395b3d57bab0 diff --git a/internals/_PDCLIB_locale.h b/internals/_PDCLIB_locale.h index 3159dfb..f120748 100644 --- a/internals/_PDCLIB_locale.h +++ b/internals/_PDCLIB_locale.h @@ -10,7 +10,11 @@ #define _PDCLIB_LOCALE_METHOD_THREAD_LOCAL 'T' #if !defined(_PDCLIB_LOCALE_METHOD) - #error _PDCLIB_LOCALE_METHOD undefined: don't know where I'm storing the thread locale + /* If undefined, no POSIX per thread locales */ + static inline locale_t _PDCLIB_threadlocale( void ) + { + return &_PDCLIB_global_locale; + } #elif _PDCLIB_LOCALE_METHOD == _PDCLIB_LOCALE_METHOD_TSS extern tss_t _PDCLIB_locale_tss; static inline locale_t _PDCLIB_threadlocale( void )