diff options
author | DJ Delorie <dj@redhat.com> | 2000-08-01 20:51:51 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2000-08-01 20:51:51 +0000 |
commit | 749d9bcd4b38c921930a9ce51bea2a8df0edf940 (patch) | |
tree | 3210c1e750155e4d311738444a7171ae8b276aad /newlib/libc/include/math.h | |
parent | deb2b467e949bc9a2ba4d06436f43531bd9827a8 (diff) | |
download | cygnal-749d9bcd4b38c921930a9ce51bea2a8df0edf940.tar.gz cygnal-749d9bcd4b38c921930a9ce51bea2a8df0edf940.tar.bz2 cygnal-749d9bcd4b38c921930a9ce51bea2a8df0edf940.zip |
* libc/include/sys/config.h: define __IMPORT appropriately
* libc/include/ctype.h (_ctype_): use __IMPORT
* libc/include/math.h (__infinity, signam, _LIB_VERSION): ditto
* libc/include/math.h (__mb_cur_max): ditto
* libc/include/time.h (_timezone, _daylight, _tzname): ditto
* libc/include/unctrl.h (__unctrl, __unctrllen): ditto
* libc/include/errno.h (_sys_errlist, _sys_nerr): ditto
* libc/include/unistd.h (environ): ditto
Diffstat (limited to 'newlib/libc/include/math.h')
-rw-r--r-- | newlib/libc/include/math.h | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/newlib/libc/include/math.h b/newlib/libc/include/math.h index 6a6440dc7..f092aff19 100644 --- a/newlib/libc/include/math.h +++ b/newlib/libc/include/math.h @@ -23,19 +23,8 @@ union __dmath /* Declare this as an array without bounds so that no matter what small data support a port and/or library has, this reference will be via the general - method for accessing globals. - - Also under Cygwin, the library exports a pointer to the real value, so we - need to properly dereference it. */ -#ifndef __INFINITY_DECL__ -#if !defined(__CYGWIN__) || defined(__INSIDE_CYGWIN__) || defined(_COMPILING_NEWLIB) -#define __INFINITY_DECL__ -#else -#define __INFINITY_DECL__ __declspec(dllimport) -#endif -#endif - -extern __INFINITY_DECL__ const union __dmath __infinity[]; + method for accessing globals. */ +extern __IMPORT const union __dmath __infinity[]; #define HUGE_VAL (__infinity[0].d) @@ -197,7 +186,7 @@ extern float dremf _PARAMS((float, float)); /* The gamma functions use a global variable, signgam. */ -extern int signgam; +extern __IMPORT int signgam; /* The exception structure passed to the matherr routine. */ @@ -268,7 +257,7 @@ enum __fdlibm_version #define _LIB_VERSION_TYPE enum __fdlibm_version #define _LIB_VERSION __fdlib_version -extern _CONST _LIB_VERSION_TYPE _LIB_VERSION; +extern __IMPORT _CONST _LIB_VERSION_TYPE _LIB_VERSION; #define _IEEE_ __fdlibm_ieee #define _SVID_ __fdlibm_svid |