diff options
author | Christopher Faylor <me@cgf.cx> | 2000-07-27 14:49:09 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-07-27 14:49:09 +0000 |
commit | bf7be721b84e33cc846dbcbff1be0a3c38ad4bb8 (patch) | |
tree | 875853127c6ed6a2b84b270c01d12d72218532a2 /newlib/libc/include/math.h | |
parent | 6864e5d7b4fe96c74f4d5f2a7c146291fafc1c06 (diff) | |
download | cygnal-bf7be721b84e33cc846dbcbff1be0a3c38ad4bb8.tar.gz cygnal-bf7be721b84e33cc846dbcbff1be0a3c38ad4bb8.tar.bz2 cygnal-bf7be721b84e33cc846dbcbff1be0a3c38ad4bb8.zip |
* libc/include/math.h: Use appropriate dll import linkage for Cygwin.
Diffstat (limited to 'newlib/libc/include/math.h')
-rw-r--r-- | newlib/libc/include/math.h | 4 |
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) |