home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / g / bug / 2188 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.5 KB  |  57 lines

  1. Newsgroups: gnu.g++.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!hiauly1.hia.nrc.ca!dave
  3. From: dave@hiauly1.hia.nrc.ca (John David Anglin)
  4. Subject: math.g generated by fixincludes on hp730 8.07
  5. Message-ID: <9301082236.AA17365@life.ai.mit.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Fri, 8 Jan 1993 22:36:53 GMT
  10. Approved: bug-g++@prep.ai.mit.edu
  11. Lines: 44
  12.  
  13. I found the following changes to the math.h generated by fixincludes on
  14. my hp730 running hpux 8.07 necessary to build libg++ 2.3:
  15.  
  16. # diff -c math.h.orig math.h
  17. *** math.h.orig    Thu Jan  7 15:23:43 1993
  18. --- math.h    Wed Dec 16 01:08:08 1992
  19. ***************
  20. *** 30,43 ****
  21.        extern double log10(double);
  22.        extern double modf(double, double *);
  23.        extern double pow(double, double);
  24. - #    ifdef __cplusplus
  25. -      }
  26. -      inline double pow(double __d,int __expon) {
  27. -      return pow(__d,(double)__expon);
  28. -      }
  29. -      extern "C" {
  30. - #else
  31. - #    endif
  32.        extern double sqrt(double);
  33.        extern double ceil(double);
  34.        extern double fabs(double);
  35. --- 30,35 ----
  36. ***************
  37. *** 182,188 ****
  38.   }
  39.   inline int sqr(int x) {return(x*x);}  /* For AT&T compatibility */
  40.   inline double sqr(double x) {return(x*x);}
  41.   
  42.   #endif
  43.   
  44. --- 174,181 ----
  45.   }
  46.   inline int sqr(int x) {return(x*x);}  /* For AT&T compatibility */
  47.   inline double sqr(double x) {return(x*x);}
  48. ! #include <float.h>
  49. ! inline int isinf(double x) { return x > DBL_MAX || x < -DBL_MAX; }
  50.   
  51.   #endif
  52.   
  53. Dave Anglin
  54. National Research Council of Canada
  55.  
  56.