[PATCH] D29464: [MinGWToolChain] Don't use GCC headers on Win32
Mateusz MikuĊa via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 3 08:28:20 PST 2017
mati865 added a comment.
I know why mingw-w64 limits.h weren't used (check first comment).
At first I was using this hack:
diff -urN clang.orig/3.9.0/include/limits.h clang/3.9.0/include/limits.h
--- clang.orig/3.9.0/include/limits.h 2016-09-26 22:29:13.496441000 +0200
+++ clang/3.9.0/include/limits.h 2016-09-26 22:29:34.189625100 +0200
@@ -28,7 +28,7 @@
/* The system's limits.h may, in turn, try to #include_next GCC's limits.h.
Avert this #include_next madness. */
#if defined __GNUC__ && !defined _GCC_LIMITS_H_
-#define _GCC_LIMITS_H_
+#define _LIMITS_H___
#endif
/* System headers include a number of constants from POSIX in <limits.h>.
It was working (for limiths.h at least) but disabling usage of GCC includes made it behaving more like on Linux.
And since quadmath.h doesn't work on Linux with Clang I don't see issue.
https://reviews.llvm.org/D29464
More information about the cfe-commits
mailing list