possible bug in math.h?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I found that when I try to include functions defined in ISO C99 from math.h,
g++ throws an error when compiling the program. It specifically complains
about two lines in math.h, which when changed a litte don't produce the errors
anymore. I have glibc-devel-2.2.4-19.3 installed. The diff output for the
change is at the end of my email. If this is not the right forum for this kind
of problem and somebody knows a better place for this, please let me know.

	Thanks, nick


--- /usr/include/math.h Sat Dec  8 09:03:19 2001
+++ math.h      Sat Mar 16 09:50:25 2002
@@ -113,11 +113,11 @@
 extern int signgam;
 #endif
 
 
 /* ISO C99 defines some generic macros which work on any data type.  */
-#if __USE_ISOC99
+#ifdef __USE_ISOC99
 
 /* Get the architecture specific values describing the floating-point
    evaluation.  The following symbols will get defined:
 
     float_t    floating-point type at least as wide as `float' used
@@ -349,11 +349,11 @@
 #ifdef __USE_EXTERN_INLINES
 # include <bits/mathinline.h>
 #endif
 
 
-#if __USE_ISOC99
+#ifdef __USE_ISOC99
 /* ISO C99 defines some macros to compare number while taking care
    for unordered numbers.  Since many FPUs provide special
    instructions to support these operations and these tests are
    defined in <bits/mathinline.h>, we define the generic macros at
    this late point and only if they are not defined yet.  */






[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux