Handle recursive <limits.h>

From-SVN: r8690
This commit is contained in:
Ian Lance Taylor 1994-12-22 17:50:42 +00:00
parent 40dc28fcab
commit 66de8a65bf
3 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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_ */