comparison src/sysfloat.h @ 412:697ef44129c6 r21-2-14

Import from CVS: tag r21-2-14
author cvs
date Mon, 13 Aug 2007 11:20:41 +0200
parents de805c49cfc1
children
comparison
equal deleted inserted replaced
411:12e008d41344 412:697ef44129c6
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */ 19 Boston, MA 02111-1307, USA. */
20 20
21 /* Synched up with: Not really in FSF. */ 21 /* Synched up with: Not really in FSF. */
22 22
23 #ifndef INCLUDED_sysfloat_h_
24 #define INCLUDED_sysfloat_h_
25
26 /* Work around a problem that happens because math.h on hpux 7 23 /* Work around a problem that happens because math.h on hpux 7
27 defines two static variables--which, in Emacs, are not really static, 24 defines two static variables--which, in Emacs, are not really static,
28 because `static' is defined as nothing. The problem is that they are 25 because `static' is defined as nothing. The problem is that they are
29 defined both in data.c and in floatfns.c. 26 defined both in data.c and in floatfns.c.
30 These macros prevent the name conflict. 27 These macros prevent the name conflict.
35 # if defined (HPUX) && !defined (HPUX8) 32 # if defined (HPUX) && !defined (HPUX8)
36 # define _MAXLDBL THIS_FILENAME ## _maxldbl 33 # define _MAXLDBL THIS_FILENAME ## _maxldbl
37 # define _NMAXLDBL THIS_FILENAME ## _nmaxldbl 34 # define _NMAXLDBL THIS_FILENAME ## _nmaxldbl
38 # endif 35 # endif
39 36
40 #if defined(LINUX) && !(defined (__GLIBC__) && (__GLIBC__ >= 2)) 37 #if defined(MSDOS) || (defined(LINUX) && \
38 !(defined (__GLIBC__) && (__GLIBC__ >= 2)))
41 /* These are redefined (correctly, but differently) in values.h. */ 39 /* These are redefined (correctly, but differently) in values.h. */
42 #undef INTBITS 40 #undef INTBITS
43 #undef LONGBITS 41 #undef LONGBITS
44 #undef SHORTBITS 42 #undef SHORTBITS
45 #endif 43 #endif
46 44
47 #include <math.h> 45 #include <math.h>
48 46
49 #ifdef WIN32_NATIVE 47 #ifdef WINDOWSNT
50 /* A quirky way to obtain logb prototype */ 48 /* A quirky way to obtain logb prototype */
51 #include <float.h> 49 #include <float.h>
52 #define logb _logb 50 #define logb _logb
53 #endif 51 #endif
54 52
86 84
87 #ifndef isnan 85 #ifndef isnan
88 # define isnan(x) ((x) != (x)) 86 # define isnan(x) ((x) != (x))
89 #endif 87 #endif
90 88
91 #endif /* INCLUDED_sysfloat_h_ */