summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/include/math.h4
1 files changed, 4 insertions, 0 deletions
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)