Commit 90aad327 authored by Alexandre Julliard's avatar Alexandre Julliard

msvcp: Add a macro to access the locale field of I/O streams.

parent 574350d8
......@@ -352,6 +352,8 @@ unsigned short __thiscall basic_streambuf_wchar_sgetc(basic_streambuf_wchar*);
unsigned short __thiscall basic_streambuf_wchar_sbumpc(basic_streambuf_wchar*);
unsigned short __thiscall basic_streambuf_wchar_sputc(basic_streambuf_wchar*, wchar_t);
#define IOS_LOCALE(ios) (&(ios)->loc)
/* class num_get<char> */
typedef struct {
locale_facet facet;
......
......@@ -466,6 +466,12 @@ unsigned short __thiscall basic_streambuf_wchar_sgetc(basic_streambuf_wchar*);
unsigned short __thiscall basic_streambuf_wchar_sbumpc(basic_streambuf_wchar*);
unsigned short __thiscall basic_streambuf_wchar_sputc(basic_streambuf_wchar*, wchar_t);
#if _MSVCP_VER < 70
#define IOS_LOCALE(ios) (&(ios)->loc)
#else
#define IOS_LOCALE(ios) ((ios)->loc)
#endif
/* class num_get<char> */
typedef struct {
locale_facet facet;
......
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