Hi,
the below patch adds an include to stddef.h from _cygwin.h. This is
necessary so that base types like wchar_t and size_t are always defined,
but taking the definitions from the Cygwin targeting toolchain.
Corinna
* crt/_cygwin.h: Include stddef.h.
Index: mingw-w64-headers/crt/_cygwin.h
===================================================================
--- mingw-w64-headers/crt/_cygwin.h (revision 5134)
+++ mingw-w64-headers/crt/_cygwin.h (working copy)
@@ -10,6 +10,9 @@
#error Only Cygwin target is supported!
#endif
+/* This includes the Cygwin gcc definitions for types like wchar_t or size_t.
*/
+#include <stddef.h>
+
/* Make sure that POSIX types are not defined by _mingw.h if we're building
for a Cygwin target. In this case we have to make sure to use the types
defined by the Cygwin/newlib headers. */
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public