aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/tests
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2004-11-13 20:41:01 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2004-11-13 20:41:01 +0000
commit68f674e990c0035f008ff0cc67f711ef7912e4f8 (patch)
tree8989be336bf542c9a1656dcc23bd99e062dfb81f /fixincludes/tests
parentae8cacc6fd362fd423deea96b7c70a2dd902520b (diff)
downloadgcc-68f674e990c0035f008ff0cc67f711ef7912e4f8.zip
gcc-68f674e990c0035f008ff0cc67f711ef7912e4f8.tar.gz
gcc-68f674e990c0035f008ff0cc67f711ef7912e4f8.tar.bz2
inclhack.def (hpux_maxint, [...]): Remove.
* inclhack.def (hpux_maxint, limits_ifndefs, math_huge_val_ifndef, svr4__p, undefine_null): Remove. * fixincl.x: Regenerate. * tests/base/AvailabilityMacros.h, tests/base/com_err.h: New. * tests/base/sys/param.h: Remove. * tests/base/curses.h, tests/base/math.h, tests/base/testing.h, tests/base/sys/limits.h: Update. From-SVN: r90594
Diffstat (limited to 'fixincludes/tests')
-rw-r--r--fixincludes/tests/base/AvailabilityMacros.h15
-rw-r--r--fixincludes/tests/base/com_err.h (renamed from fixincludes/tests/base/sys/param.h)10
-rw-r--r--fixincludes/tests/base/curses.h2
-rw-r--r--fixincludes/tests/base/math.h16
-rw-r--r--fixincludes/tests/base/sys/limits.h7
-rw-r--r--fixincludes/tests/base/testing.h11
6 files changed, 19 insertions, 42 deletions
diff --git a/fixincludes/tests/base/AvailabilityMacros.h b/fixincludes/tests/base/AvailabilityMacros.h
new file mode 100644
index 0000000..81a0da0
--- /dev/null
+++ b/fixincludes/tests/base/AvailabilityMacros.h
@@ -0,0 +1,15 @@
+/* DO NOT EDIT THIS FILE.
+
+ It has been auto-edited by fixincludes from:
+
+ "fixinc/tests/inc/AvailabilityMacros.h"
+
+ This had to be done to correct non-standard usages in the
+ original, manufacturer supplied header file. */
+
+
+
+#if defined( DARWIN_GCC4_BREAKAGE_CHECK )
+#if defined(__GNUC__) && ((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
+
+#endif /* DARWIN_GCC4_BREAKAGE_CHECK */
diff --git a/fixincludes/tests/base/sys/param.h b/fixincludes/tests/base/com_err.h
index 4126924..6017d2a 100644
--- a/fixincludes/tests/base/sys/param.h
+++ b/fixincludes/tests/base/com_err.h
@@ -2,15 +2,13 @@
It has been auto-edited by fixincludes from:
- "fixinc/tests/inc/sys/param.h"
+ "fixinc/tests/inc/com_err.h"
This had to be done to correct non-standard usages in the
original, manufacturer supplied header file. */
-#if defined( HPUX_MAXINT_CHECK )
-#ifndef MAXINT
-#define MAXINT 0x7FFFFFFF
-#endif
-#endif /* HPUX_MAXINT_CHECK */
+#if defined( STDIO_DUMMY_VA_LIST_CLIENTS_CHECK )
+extern void mumble( __gnuc_va_list);
+#endif /* STDIO_DUMMY_VA_LIST_CLIENTS_CHECK */
diff --git a/fixincludes/tests/base/curses.h b/fixincludes/tests/base/curses.h
index eb2067e..e05f891 100644
--- a/fixincludes/tests/base/curses.h
+++ b/fixincludes/tests/base/curses.h
@@ -31,7 +31,5 @@ struct term;
#if defined( VOID_NULL_CHECK )
-#ifndef NULL
#define NULL 0 /* typed NULL */
-#endif
#endif /* VOID_NULL_CHECK */
diff --git a/fixincludes/tests/base/math.h b/fixincludes/tests/base/math.h
index 52fa3f3..945cc04e 100644
--- a/fixincludes/tests/base/math.h
+++ b/fixincludes/tests/base/math.h
@@ -68,19 +68,10 @@ typedef struct exception t_math_exception;
#if defined( MATH_HUGE_VAL_FROM_DBL_MAX_CHECK )
-#ifndef HUGE_VAL
#define HUGE_VAL 3.1415e+9 /* really big */
-#endif
#endif /* MATH_HUGE_VAL_FROM_DBL_MAX_CHECK */
-#if defined( MATH_HUGE_VAL_IFNDEF_CHECK )
-#ifndef HUGE_VAL
-# define HUGE_VAL 3.4e+40
-#endif
-#endif /* MATH_HUGE_VAL_IFNDEF_CHECK */
-
-
#if defined( RS6000_DOUBLE_CHECK )
#ifndef __cplusplus
extern int class();
@@ -105,13 +96,6 @@ int foo;
#endif /* STRICT_ANSI_NOT_CTD_CHECK */
-#if defined( SVR4__P_CHECK )
-#ifndef __P
-#define __P(a) a
-#endif
-#endif /* SVR4__P_CHECK */
-
-
#if defined( ULTRIX_ATOF_PARAM_CHECK )
extern double atof(const char *__nptr);
diff --git a/fixincludes/tests/base/sys/limits.h b/fixincludes/tests/base/sys/limits.h
index cd8ba2a..0ef2ff5 100644
--- a/fixincludes/tests/base/sys/limits.h
+++ b/fixincludes/tests/base/sys/limits.h
@@ -9,13 +9,6 @@
-#if defined( LIMITS_IFNDEFS_CHECK )
-#ifndef DBL_DIG
- # define DBL_DIG 0 /* somthin' */
-#endif
-#endif /* LIMITS_IFNDEFS_CHECK */
-
-
#if defined( NESTED_MOTOROLA_CHECK )
#undef PIPE_BUF /* max # bytes atomic in write to a */
/* PIPE */
diff --git a/fixincludes/tests/base/testing.h b/fixincludes/tests/base/testing.h
index 0530cdf..88b931e 100644
--- a/fixincludes/tests/base/testing.h
+++ b/fixincludes/tests/base/testing.h
@@ -129,17 +129,6 @@ extern size_t
#endif /* SYSV68_STRING_CHECK */
-#if defined( UNDEFINE_NULL_CHECK )
-#ifndef NULL
-#define NULL 0UL
-#endif
-#ifndef NULL
-#define NULL ((void*)0)
-#endif
-
-#endif /* UNDEFINE_NULL_CHECK */
-
-
#if defined( WINDISS_VALIST_CHECK )
#include <stdarg.h>
#endif /* WINDISS_VALIST_CHECK */