headers: Sync changes from stdlib.h to wchar.h from a2feff99e4f

This define machinery is duplicated betwen the headers, and should
stay in sync.

Also sync the ifdef surrounding the wcstof and wcstod functions.

This fixes building the crt for arm platforms.

On x86 platforms, the intrin headers end up including mm_malloc.h,
which includes stdlib.h implcitly - which makes stdlib.h end up
included before wchar.h, even if stdlib.h isn't explicitly included.
That explains why the build succeeded on one architecture but not
others.

Signed-off-by: Martin Storsjö <martin@martin.st>
1 file changed