mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01: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. llvm-svn: 161658
This commit is contained in:
parent
f07e1e10a6
commit
bb0db71d1b
@ -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