This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
[PATCH] Use appropriate Windows dll linkage for __infinity
- To: newlib at sourceware dot cygnus dot com
- Subject: [PATCH] Use appropriate Windows dll linkage for __infinity
- From: Chris Faylor <cgf at cygnus dot com>
- Date: Thu, 27 Jul 2000 10:50:19 -0400
I've just checked in the following (stopgap) change under Cygwin.
I think that DJ's proposed plan for dealing with this in a more generic
fashion makes sense but, for now, I needed to rectify this problem for
a cygwin net release.
This change mirrors similar usages in other include files.
cgf
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.
Index: math.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/math.h,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 math.h
--- math.h 2000/02/17 19:39:46 1.1.1.1
+++ math.h 2000/07/27 13:58:49
@@ -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)