* libc/include/math.h: Use appropriate dll import linkage for Cygwin.

This commit is contained in:
Christopher Faylor 2000-07-27 14:49:09 +00:00
parent 6864e5d7b4
commit bf7be721b8
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Thu Jul 27 10:46:01 2000 Christopher Faylor <cgf@cygnus.com>
* libc/include/math.h: Use appropriate dll import linkage for
__infinity under Cygwin.
2000-07-13 DJ Delorie <dj@cygnus.com> 2000-07-13 DJ Delorie <dj@cygnus.com>
* libc/stdio/vfprintf.c: pad 0.0 correctly with %e * libc/stdio/vfprintf.c: pad 0.0 correctly with %e

View File

@ -21,7 +21,11 @@ union __dmath
double d; double d;
}; };
#if !defined(__CYGWIN__) || defined(__INSIDE_CYGWIN__) || defined(_COMPILING_NEWLIB)
extern const union __dmath __infinity; extern const union __dmath __infinity;
#else
extern __declspec(dllimport) const union __dmath __infinity;
#endif
#define HUGE_VAL (__infinity.d) #define HUGE_VAL (__infinity.d)