mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-06 19:16:55 +00:00
stdcxx's cstdio doesn't include stdio.h, but the code using PathV2.inc
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
This commit is contained in:
parent
78cab947cf
commit
c103ede50b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user