msvcp110: Add _Winerror_map implementation.
Based on patch by Myah Caron.
This commit is contained in:
parent
912f1a43de
commit
5833732b9a
4 changed files with 15 additions and 8 deletions
|
@ -1827,8 +1827,8 @@
|
||||||
@ stub -arch=arm ?_W_Gettnames@_Locinfo@std@@QBA?AV_Timevec@2@XZ
|
@ stub -arch=arm ?_W_Gettnames@_Locinfo@std@@QBA?AV_Timevec@2@XZ
|
||||||
@ stub -arch=i386 ?_W_Gettnames@_Locinfo@std@@QBE?AV_Timevec@2@XZ
|
@ stub -arch=i386 ?_W_Gettnames@_Locinfo@std@@QBE?AV_Timevec@2@XZ
|
||||||
@ stub -arch=win64 ?_W_Gettnames@_Locinfo@std@@QEBA?AV_Timevec@2@XZ
|
@ stub -arch=win64 ?_W_Gettnames@_Locinfo@std@@QEBA?AV_Timevec@2@XZ
|
||||||
@ stub -arch=win32 ?_Winerror_map@std@@YAPBDH@Z
|
@ cdecl -arch=win32 ?_Winerror_map@std@@YAPBDH@Z(long) _Winerror_map_str
|
||||||
@ stub -arch=win64 ?_Winerror_map@std@@YAPEBDH@Z
|
@ cdecl -arch=win64 ?_Winerror_map@std@@YAPEBDH@Z(long) _Winerror_map_str
|
||||||
@ cdecl ?_XLgamma@std@@YAMM@Z(float) std__XLgamma_float
|
@ cdecl ?_XLgamma@std@@YAMM@Z(float) std__XLgamma_float
|
||||||
@ cdecl ?_XLgamma@std@@YANN@Z(double) std__XLgamma_double
|
@ cdecl ?_XLgamma@std@@YANN@Z(double) std__XLgamma_double
|
||||||
@ cdecl ?_XLgamma@std@@YAOO@Z(double) std__XLgamma_double
|
@ cdecl ?_XLgamma@std@@YAOO@Z(double) std__XLgamma_double
|
||||||
|
|
|
@ -1788,8 +1788,8 @@
|
||||||
@ stub -arch=arm ?_W_Gettnames@_Locinfo@std@@QBA?AV_Timevec@2@XZ
|
@ stub -arch=arm ?_W_Gettnames@_Locinfo@std@@QBA?AV_Timevec@2@XZ
|
||||||
@ stub -arch=i386 ?_W_Gettnames@_Locinfo@std@@QBE?AV_Timevec@2@XZ
|
@ stub -arch=i386 ?_W_Gettnames@_Locinfo@std@@QBE?AV_Timevec@2@XZ
|
||||||
@ stub -arch=win64 ?_W_Gettnames@_Locinfo@std@@QEBA?AV_Timevec@2@XZ
|
@ stub -arch=win64 ?_W_Gettnames@_Locinfo@std@@QEBA?AV_Timevec@2@XZ
|
||||||
@ stub -arch=win32 ?_Winerror_map@std@@YAPBDH@Z
|
@ cdecl -arch=win32 ?_Winerror_map@std@@YAPBDH@Z(long) _Winerror_map_str
|
||||||
@ stub -arch=win64 ?_Winerror_map@std@@YAPEBDH@Z
|
@ cdecl -arch=win64 ?_Winerror_map@std@@YAPEBDH@Z(long) _Winerror_map_str
|
||||||
@ cdecl ?_XLgamma@std@@YAMM@Z(float) std__XLgamma_float
|
@ cdecl ?_XLgamma@std@@YAMM@Z(float) std__XLgamma_float
|
||||||
@ cdecl ?_XLgamma@std@@YANN@Z(double) std__XLgamma_double
|
@ cdecl ?_XLgamma@std@@YANN@Z(double) std__XLgamma_double
|
||||||
@ cdecl ?_XLgamma@std@@YAOO@Z(double) std__XLgamma_double
|
@ cdecl ?_XLgamma@std@@YAOO@Z(double) std__XLgamma_double
|
||||||
|
|
|
@ -1788,8 +1788,8 @@
|
||||||
@ stub -arch=arm ?_W_Gettnames@_Locinfo@std@@QBA?AV_Timevec@2@XZ
|
@ stub -arch=arm ?_W_Gettnames@_Locinfo@std@@QBA?AV_Timevec@2@XZ
|
||||||
@ stub -arch=i386 ?_W_Gettnames@_Locinfo@std@@QBE?AV_Timevec@2@XZ
|
@ stub -arch=i386 ?_W_Gettnames@_Locinfo@std@@QBE?AV_Timevec@2@XZ
|
||||||
@ stub -arch=win64 ?_W_Gettnames@_Locinfo@std@@QEBA?AV_Timevec@2@XZ
|
@ stub -arch=win64 ?_W_Gettnames@_Locinfo@std@@QEBA?AV_Timevec@2@XZ
|
||||||
@ stub -arch=win32 ?_Winerror_map@std@@YAPBDH@Z
|
@ cdecl -arch=win32 ?_Winerror_map@std@@YAPBDH@Z(long) msvcp120.?_Winerror_map@std@@YAPBDH@Z
|
||||||
@ stub -arch=win64 ?_Winerror_map@std@@YAPEBDH@Z
|
@ cdecl -arch=win64 ?_Winerror_map@std@@YAPEBDH@Z(long) msvcp120.?_Winerror_map@std@@YAPEBDH@Z
|
||||||
@ cdecl ?_XLgamma@std@@YAMM@Z(float) msvcp120.?_XLgamma@std@@YAMM@Z
|
@ cdecl ?_XLgamma@std@@YAMM@Z(float) msvcp120.?_XLgamma@std@@YAMM@Z
|
||||||
@ cdecl ?_XLgamma@std@@YANN@Z(double) msvcp120.?_XLgamma@std@@YANN@Z
|
@ cdecl ?_XLgamma@std@@YANN@Z(double) msvcp120.?_XLgamma@std@@YANN@Z
|
||||||
@ cdecl ?_XLgamma@std@@YAOO@Z(double) msvcp120.?_XLgamma@std@@YAOO@Z
|
@ cdecl ?_XLgamma@std@@YAOO@Z(double) msvcp120.?_XLgamma@std@@YAOO@Z
|
||||||
|
|
|
@ -191,9 +191,7 @@ static const struct {
|
||||||
{ETXTBSY, str_ETXTBSY},
|
{ETXTBSY, str_ETXTBSY},
|
||||||
{EWOULDBLOCK, str_EWOULDBLOCK},
|
{EWOULDBLOCK, str_EWOULDBLOCK},
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
|
|
||||||
#if _MSVCP_VER >= 140
|
|
||||||
static const struct {
|
static const struct {
|
||||||
int winerr;
|
int winerr;
|
||||||
int doserr;
|
int doserr;
|
||||||
|
@ -1691,7 +1689,9 @@ ULONG __cdecl _Winerror_message(ULONG err, char *buf, ULONG size)
|
||||||
return FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
|
return FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
|
||||||
NULL, err, 0, buf, size, NULL);
|
NULL, err, 0, buf, size, NULL);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if _MSVCP_VER >= 110
|
||||||
/* ?_Winerror_map@std@@YAHH@Z */
|
/* ?_Winerror_map@std@@YAHH@Z */
|
||||||
int __cdecl _Winerror_map(int err)
|
int __cdecl _Winerror_map(int err)
|
||||||
{
|
{
|
||||||
|
@ -1711,6 +1711,13 @@ int __cdecl _Winerror_map(int err)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ?_Winerror_map@std@@YAPBDH@Z */
|
||||||
|
/* ?_Winerror_map@std@@YAPEBDH@Z */
|
||||||
|
const char *_Winerror_map_str(int err)
|
||||||
|
{
|
||||||
|
return _Syserror_map(_Winerror_map(err));
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if _MSVCP_VER >= 100
|
#if _MSVCP_VER >= 100
|
||||||
|
|
Loading…
Add table
Reference in a new issue