kripken/emscripten — Issue #99: "support/win32/locale.h" is missing
Author: BenoitT
Created: 2011-10-18 13:52:17+00:00
State: open

The file included inside "system/include/libcxx/__locale" includes for Windows "support/win32/locale.h" and he's missing on SVN.

I found a version inside LLVM's SVN (https://llvm.org/viewvc/llvm-project/libcxx/trunk/include/support/win32/?pathrev=140728) but it requires xlocinfo.h. I've tried to use the version on Visual Studio include folder and it tells me _SPACE / _BLANK / _PUNCT / _ALPHA / ... undefined.

I'm using:
Windows 7 (no Cygwin or anything)
LLVM 3.0
EMScripten 3.0.46

Here is the command line I use:

python tools/emmaken.py main.cpp -o main.by -D_HAVE_STDC

Also, if I don't define manually _HAVE_STDC, all STDC functions are undefined.

What's the best way to fix it?