The issue is that you're using -fms-extensions
, which enables MS extensions, including a __uptr
keyword. Inside stdlib.h
, __uptr
is used as an identifier:
union wait *__uptr;
... which is incompatible with the MS extension.
Alp Toker has added a workaround for this in clang trunk in upstream r195710, and the fix will be in the Clang 3.4 release.