OSDN Git Service

* libc/include/math.h: Use appropriate dll import linkage for Cygwin.
authorcgf <cgf>
Thu, 27 Jul 2000 14:49:09 +0000 (14:49 +0000)
committercgf <cgf>
Thu, 27 Jul 2000 14:49:09 +0000 (14:49 +0000)
newlib/ChangeLog
newlib/libc/include/math.h

index b2af5ff..e81a73e 100644 (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>
 
        * libc/stdio/vfprintf.c: pad 0.0 correctly with %e
index d3f2e99..cd03945 100644 (file)
@@ -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)