summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-11-30 23:08:48 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-11-30 23:08:48 +0000
commitc21047db5b02476399e41eac8719ce9841fb1bc7 (patch)
treec9797b763adb1c71b6c01261050a2b800a66225d
parentd48a8d7b5edfe51b5a0451f35c4114b92e382fdc (diff)
downloadgcc-c21047db5b02476399e41eac8719ce9841fb1bc7.tar.gz
Test and define _GCC_LIMITS_H_, not _LIMITS_H_.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2822 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/limitx.h6
-rw-r--r--gcc/limity.h2
2 files changed, 5 insertions, 3 deletions
diff --git a/gcc/limitx.h b/gcc/limitx.h
index 4b927b9a007..4e383bcb1f0 100644
--- a/gcc/limitx.h
+++ b/gcc/limitx.h
@@ -1,8 +1,10 @@
/* This administrivia gets added to the beginning of limits.h
if the system has its own version of limits.h. */
-#ifndef _LIMITS_H_ /* Terminated in limity.h. */
-#define _LIMITS_H_
+/* We use _GCC_LIMITS_H_ because we want this not to match
+ any macros that the system's limits.h uses for its own purposes. */
+#ifndef _GCC_LIMITS_H_ /* Terminated in limity.h. */
+#define _GCC_LIMITS_H_
#ifndef _LIBC_LIMITS_H_
/* Use <...> so that we find syslimits.h only in system include dirs. */
diff --git a/gcc/limity.h b/gcc/limity.h
index 59657134b3b..5492553c9c5 100644
--- a/gcc/limity.h
+++ b/gcc/limity.h
@@ -1,4 +1,4 @@
/* This administrivia gets added to the end of limits.h
if the system has its own version of limits.h. */
-#endif /* not _LIMITS_H_ */
+#endif /* not _GCC_LIMITS_H_ */