stdcxx's cstdio doesn't include stdio.h, but the code using PathV2.inc
authorJoerg Sonnenberger <joerg@bec.de>
Fri, 10 Aug 2012 10:56:09 +0000 (10:56 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Fri, 10 Aug 2012 10:56:09 +0000 (10:56 +0000)
includes both. Deal with feof and ferror potentially being macros.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161658 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Unix/PathV2.inc

index 4e431ca377540669d1181d038ffd3aa092c22ee3..99f8cd4cc370408459fe6f5835c9cd12c04c27c7 100644 (file)
 #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