From 749d9bcd4b38c921930a9ce51bea2a8df0edf940 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Tue, 1 Aug 2000 20:51:51 +0000 Subject: * 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 --- newlib/libc/include/sys/config.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'newlib/libc/include/sys/config.h') diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h index b0957ea33..f8bd8cdb9 100644 --- a/newlib/libc/include/sys/config.h +++ b/newlib/libc/include/sys/config.h @@ -125,4 +125,18 @@ typedef unsigned int __uint32_t; #define __RAND_MAX 0x7fffffff #endif + +#if defined(__CYGWIN32__) || defined(__CYGWIN__) +#if defined(__INSIDE_CYGWIN__) || defined(_COMPILING_NEWLIB) +#define __IMPORT +#else +#define __IMPORT __declspec(dllimport) +#endif +#endif + +#ifndef __IMPORT +#define __IMPORT +#endif + + #endif /* __SYS_CONFIG_H__ */ -- cgit v1.2.3