diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-12-22 17:50:42 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-12-22 17:50:42 +0000 |
commit | f49e52a6a08efdd3c12d377f30f0a587caab3e74 (patch) | |
tree | e52cc4d8aac9fbebf26f684777323216e59e98c7 | |
parent | 0848b3697c3a9d25176f8f9506e7ad9f4c376fd3 (diff) | |
download | gcc-f49e52a6a08efdd3c12d377f30f0a587caab3e74.tar.gz |
Handle recursive <limits.h>
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8690 138bc75d-0d04-0410-961f-82ee72b054a4
-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 0a91639d7d2..a3628025e8a 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 4e383bcb1f0..529d9c5f9cf 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 5492553c9c5..8bb398f6786 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_ */ |