Commit 66de8a65 by Ian Lance Taylor

Handle recursive <limits.h>

From-SVN: r8690
parent 40dc28fc
...@@ -3,4 +3,6 @@ ...@@ -3,4 +3,6 @@
If fixincludes fixes it, then the fixed version is installed If fixincludes fixes it, then the fixed version is installed
instead of this text. */ instead of this text. */
#define _GCC_NEXT_LIMITS_H /* tell gcc's limits.h to recurse */
#include_next <limits.h> #include_next <limits.h>
#undef _GCC_NEXT_LIMITS_H
...@@ -7,6 +7,6 @@ ...@@ -7,6 +7,6 @@
#define _GCC_LIMITS_H_ #define _GCC_LIMITS_H_
#ifndef _LIBC_LIMITS_H_ #ifndef _LIBC_LIMITS_H_
/* Use <...> so that we find syslimits.h only in system include dirs. */ /* Use "..." so that we find syslimits.h only in this same directory. */
#include <syslimits.h> #include "syslimits.h"
#endif #endif
/* This administrivia gets added to the end of limits.h /* This administrivia gets added to the end of limits.h
if the system has its own version of limits.h. */ if the system has its own version of limits.h. */
#else /* not _GCC_LIMITS_H_ */
#ifdef _GCC_NEXT_LIMITS_H
#include_next <limits.h> /* recurse down to the real one */
#endif
#endif /* not _GCC_LIMITS_H_ */ #endif /* not _GCC_LIMITS_H_ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment