diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 1994-12-22 17:50:42 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 1994-12-22 17:50:42 +0000 |
commit | 66de8a65bfc83229da0ccb9354076ee593ca8860 (patch) | |
tree | e52cc4d8aac9fbebf26f684777323216e59e98c7 /gcc | |
parent | 40dc28fcab765420947057434bfc99ef0412cb9a (diff) | |
download | gcc-66de8a65bfc83229da0ccb9354076ee593ca8860.zip gcc-66de8a65bfc83229da0ccb9354076ee593ca8860.tar.gz gcc-66de8a65bfc83229da0ccb9354076ee593ca8860.tar.bz2 |
Handle recursive <limits.h>
From-SVN: r8690
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/gsyslimits.h | 2 | ||||
-rw-r--r-- | gcc/limitx.h | 4 | ||||
-rw-r--r-- | gcc/limity.h | 6 |
3 files changed, 10 insertions, 2 deletions
diff --git a/gcc/gsyslimits.h b/gcc/gsyslimits.h index 0a91639..a362802 100644 --- a/gcc/gsyslimits.h +++ b/gcc/gsyslimits.h @@ -3,4 +3,6 @@ If fixincludes fixes it, then the fixed version is installed instead of this text. */ +#define _GCC_NEXT_LIMITS_H /* tell gcc's limits.h to recurse */ #include_next <limits.h> +#undef _GCC_NEXT_LIMITS_H diff --git a/gcc/limitx.h b/gcc/limitx.h index 4e383bc..529d9c5 100644 --- a/gcc/limitx.h +++ b/gcc/limitx.h @@ -7,6 +7,6 @@ #define _GCC_LIMITS_H_ #ifndef _LIBC_LIMITS_H_ -/* Use <...> so that we find syslimits.h only in system include dirs. */ -#include <syslimits.h> +/* Use "..." so that we find syslimits.h only in this same directory. */ +#include "syslimits.h" #endif diff --git a/gcc/limity.h b/gcc/limity.h index 5492553..8bb398f 100644 --- a/gcc/limity.h +++ b/gcc/limity.h @@ -1,4 +1,10 @@ /* This administrivia gets added to the end 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_ */ |