This fixes building the following with libc++:
#include <stdbool.h>
#include <iostream>
With libc++, yvals.h is implicitly included by anything that includes
locales (via xlocinfo.h).
Signed-off-by: Martin Storsjö <[email protected]>
---
mingw-w64-headers/crt/yvals.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/mingw-w64-headers/crt/yvals.h b/mingw-w64-headers/crt/yvals.h
index 70593c4..15130e4 100644
--- a/mingw-w64-headers/crt/yvals.h
+++ b/mingw-w64-headers/crt/yvals.h
@@ -163,9 +163,12 @@
#define _Restrict __restrict__
#ifdef __cplusplus
+#pragma push_macro("_Bool")
+#undef _Bool
_STD_BEGIN
typedef bool _Bool;
_STD_END
+#pragma pop_macro("_Bool")
#endif
#define _LONGLONG /* __MINGW_EXTENSION */ __int64
--
2.7.4
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public