]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Protect definitions for math.h against double inclusion.
authorUlrich Drepper <drepper@redhat.com>
Wed, 29 Dec 1999 03:03:42 +0000 (03:03 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 29 Dec 1999 03:03:42 +0000 (03:03 +0000)
sysdeps/generic/bits/mathdef.h

index 3708781597de30d2c14f62d1dbb3dd02c6b7398f..0c30b01f522c272f659295d6599fd66c7304c9ed 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -20,7 +20,9 @@
 # error "Never use <bits/mathdef.h> directly; include <math.h> instead"
 #endif
 
-#if defined  __USE_ISOC9X && defined _MATH_H
+#if defined  __USE_ISOC99 && defined _MATH_H && !defined _MATH_H_MATHDEF
+# define _MATH_H_MATHDEF       1
+
 /* Normally, there is no long double type and the `float' and `double'
    expressions are evaluated as `double'.  */
 typedef double float_t;                /* `float' expressions are evaluated as
@@ -42,7 +44,7 @@ typedef double double_t;      /* `double' expressions are evaluated as
 /* Number of decimal digits for the `double' type.  */
 # define DECIMAL_DIG   15
 
-#endif /* ISO C 9X */
+#endif /* ISO C99 */
 
 #ifndef __NO_LONG_DOUBLE_MATH
 /* Signal that we do not really have a `long double'.  The disables the