summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2012-08-10 10:56:09 +0000
committerJoerg Sonnenberger <joerg@bec.de>2012-08-10 10:56:09 +0000
commitc0697304c9e42186a93c04e75c7f02b0fcf2db38 (patch)
tree3bb545fea6f645a6352f9266c4d304896478a382 /llvm/lib/Support/Unix
parentaa2f801ca36176abb1e86cbfa0af4785df04d2ef (diff)
downloadbcm5719-llvm-c0697304c9e42186a93c04e75c7f02b0fcf2db38.tar.gz
bcm5719-llvm-c0697304c9e42186a93c04e75c7f02b0fcf2db38.zip
stdcxx's cstdio doesn't include stdio.h, but the code using PathV2.inc
includes both. Deal with feof and ferror potentially being macros. llvm-svn: 161658
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r--llvm/lib/Support/Unix/PathV2.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Support/Unix/PathV2.inc b/llvm/lib/Support/Unix/PathV2.inc
index 4e431ca3775..99f8cd4cc37 100644
--- a/llvm/lib/Support/Unix/PathV2.inc
+++ b/llvm/lib/Support/Unix/PathV2.inc
@@ -50,6 +50,12 @@
#include <limits.h>
#endif
+// Both stdio.h and cstdio are included via different pathes and
+// stdcxx's cstdio doesn't include stdio.h, so it doesn't #undef the macros
+// either.
+#undef ferror
+#undef feof
+
// For GNU Hurd
#if defined(__GNU__) && !defined(PATH_MAX)
# define PATH_MAX 4096
OpenPOWER on IntegriCloud