Commit a7b9948f authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Use _configthreadlocale arguments definition from public header.

parent 79e950bb
......@@ -2052,12 +2052,12 @@ int CDECL _configthreadlocale(int type)
thread_data_t *data = msvcrt_get_thread_data();
int ret;
ret = (data->locale_flags & LOCALE_THREAD ? MSVCRT__ENABLE_PER_THREAD_LOCALE :
MSVCRT__DISABLE_PER_THREAD_LOCALE);
ret = (data->locale_flags & LOCALE_THREAD ? _ENABLE_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;
else if(type == MSVCRT__DISABLE_PER_THREAD_LOCALE)
else if(type == _DISABLE_PER_THREAD_LOCALE)
data->locale_flags &= ~LOCALE_THREAD;
else if(type)
ret = -1;
......
......@@ -296,9 +296,6 @@ extern FILE MSVCRT__iob[];
#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;
void CDECL free_locale_noalloc(_locale_t locale) DECLSPEC_HIDDEN;
pthreadlocinfo CDECL get_locinfo(void) DECLSPEC_HIDDEN;
......
......@@ -68,6 +68,18 @@ struct lconv
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
extern "C" {
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment