]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Be like stdlib.h and bring in a wchar_t definition and use it to prototype
authorjmallett <jmallett@FreeBSD.org>
Wed, 31 Mar 2010 02:12:24 +0000 (02:12 +0000)
committerjmallett <jmallett@FreeBSD.org>
Wed, 31 Mar 2010 02:12:24 +0000 (02:12 +0000)
commitdb9a50e066d33a98681d3b1befa87a212f51d971
tree963969564d6b66506bab1bc951483497cc43657b
parentf9c2f1d54122971fb1dd0577ef02be005c990ce8
Be like stdlib.h and bring in a wchar_t definition and use it to prototype
wcstoimax and wcstoumax, rather than spelling it __wchar_t.  This is necessary
to use these functions in C++ where wchar_t is different to __wchar_t and is
a built-in type.

It may be better to use __wchar_t here and to simply define __wchar_t as being
wchar_t in C++ mode rather than to bring in wchar_t, but this is less invasive
and follows our existing practice, and restores wchar_t usage in this file to
what it was before r1.8.
include/inttypes.h