msvcrt: Use _configthreadlocale arguments definition from public header.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
79e950bb79
commit
a7b9948f39
|
@ -2052,12 +2052,12 @@ int CDECL _configthreadlocale(int type)
|
||||||
thread_data_t *data = msvcrt_get_thread_data();
|
thread_data_t *data = msvcrt_get_thread_data();
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = (data->locale_flags & LOCALE_THREAD ? MSVCRT__ENABLE_PER_THREAD_LOCALE :
|
ret = (data->locale_flags & LOCALE_THREAD ? _ENABLE_PER_THREAD_LOCALE :
|
||||||
MSVCRT__DISABLE_PER_THREAD_LOCALE);
|
_DISABLE_PER_THREAD_LOCALE);
|
||||||
|
|
||||||
if(type == MSVCRT__ENABLE_PER_THREAD_LOCALE)
|
if(type == _ENABLE_PER_THREAD_LOCALE)
|
||||||
data->locale_flags |= LOCALE_THREAD;
|
data->locale_flags |= LOCALE_THREAD;
|
||||||
else if(type == MSVCRT__DISABLE_PER_THREAD_LOCALE)
|
else if(type == _DISABLE_PER_THREAD_LOCALE)
|
||||||
data->locale_flags &= ~LOCALE_THREAD;
|
data->locale_flags &= ~LOCALE_THREAD;
|
||||||
else if(type)
|
else if(type)
|
||||||
ret = -1;
|
ret = -1;
|
||||||
|
|
|
@ -296,9 +296,6 @@ extern FILE MSVCRT__iob[];
|
||||||
|
|
||||||
#define _MAX__TIME64_T (((__time64_t)0x00000007 << 32) | 0x93406FFF)
|
#define _MAX__TIME64_T (((__time64_t)0x00000007 << 32) | 0x93406FFF)
|
||||||
|
|
||||||
#define MSVCRT__ENABLE_PER_THREAD_LOCALE 1
|
|
||||||
#define MSVCRT__DISABLE_PER_THREAD_LOCALE 2
|
|
||||||
|
|
||||||
_locale_t CDECL get_current_locale_noalloc(_locale_t locale) DECLSPEC_HIDDEN;
|
_locale_t CDECL get_current_locale_noalloc(_locale_t locale) DECLSPEC_HIDDEN;
|
||||||
void CDECL free_locale_noalloc(_locale_t locale) DECLSPEC_HIDDEN;
|
void CDECL free_locale_noalloc(_locale_t locale) DECLSPEC_HIDDEN;
|
||||||
pthreadlocinfo CDECL get_locinfo(void) DECLSPEC_HIDDEN;
|
pthreadlocinfo CDECL get_locinfo(void) DECLSPEC_HIDDEN;
|
||||||
|
|
|
@ -68,6 +68,18 @@ struct lconv
|
||||||
|
|
||||||
struct tm;
|
struct tm;
|
||||||
|
|
||||||
|
#ifndef _CONFIG_LOCALE_SWT
|
||||||
|
#define _CONFIG_LOCALE_SWT
|
||||||
|
|
||||||
|
#define _ENABLE_PER_THREAD_LOCALE 0x1
|
||||||
|
#define _DISABLE_PER_THREAD_LOCALE 0x2
|
||||||
|
#define _ENABLE_PER_THREAD_LOCALE_GLOBAL 0x10
|
||||||
|
#define _DISABLE_PER_THREAD_LOCALE_GLOBAL 0x20
|
||||||
|
#define _ENABLE_PER_THREAD_LOCALE_NEW 0x100
|
||||||
|
#define _DISABLE_PER_THREAD_LOCALE_NEW 0x200
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue