From bf7be721b84e33cc846dbcbff1be0a3c38ad4bb8 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 27 Jul 2000 14:49:09 +0000 Subject: [PATCH] * libc/include/math.h: Use appropriate dll import linkage for Cygwin. --- newlib/ChangeLog | 5 +++++ newlib/libc/include/math.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index b2af5ffa3..e81a73ea1 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +Thu Jul 27 10:46:01 2000 Christopher Faylor + + * libc/include/math.h: Use appropriate dll import linkage for + __infinity under Cygwin. + 2000-07-13 DJ Delorie * libc/stdio/vfprintf.c: pad 0.0 correctly with %e diff --git a/newlib/libc/include/math.h b/newlib/libc/include/math.h index d3f2e99ae..cd03945c9 100644 --- a/newlib/libc/include/math.h +++ b/newlib/libc/include/math.h @@ -21,7 +21,11 @@ union __dmath double d; }; +#if !defined(__CYGWIN__) || defined(__INSIDE_CYGWIN__) || defined(_COMPILING_NEWLIB) extern const union __dmath __infinity; +#else +extern __declspec(dllimport) const union __dmath __infinity; +#endif #define HUGE_VAL (__infinity.d)