]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Protect definitions for math.h against double inclusion.
authorUlrich Drepper <drepper@redhat.com>
Sat, 18 Dec 1999 19:36:39 +0000 (19:36 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 18 Dec 1999 19:36:39 +0000 (19:36 +0000)
sysdeps/alpha/fpu/bits/mathdef.h
sysdeps/m68k/fpu/bits/mathdef.h

index f5d5de8b129766ffa50b8f01b0716d708e558cb0..30f93dda1c47eaa2181133994549614b5ae5346a 100644 (file)
@@ -23,7 +23,9 @@
 /* FIXME! This file describes properties of the compiler, not the machine;
    it should not be part of libc!  */
 
-#if defined __USE_ISOC99 && defined _MATH_H
+#if defined __USE_ISOC99 && defined _MATH_H && !defined _MATH_H_MATHDEF
+# define _MATH_H_MATHDEF       1
+
 # ifdef __GNUC__
 #  if __STDC__ == 1
 
index 2f650ec8b5beaf97081dec41469dcf9026286fde..c80dad3fe1dcc25fbbe6b47e64cce16503773328 100644 (file)
@@ -20,7 +20,9 @@
 # error "Never use <bits/mathdef.h> directly; include <math.h> instead"
 #endif
 
-#if defined __USE_ISOC99 && defined _MATH_H
+#if defined __USE_ISOC99 && defined _MATH_H && !defined _MATH_H_MATHDEF
+# define _MATH_H_MATHDEF       1
+
 /* The m68k FPUs evaluate all values in the 96 bit floating-point format
    which is also available for the user as `long double'.  Therefore we
    define: */