Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include/sys/errno.h')
-rw-r--r--newlib/libc/include/sys/errno.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/newlib/libc/include/sys/errno.h b/newlib/libc/include/sys/errno.h
index cc791fcb2..6709a1ca2 100644
--- a/newlib/libc/include/sys/errno.h
+++ b/newlib/libc/include/sys/errno.h
@@ -15,13 +15,8 @@ extern "C" {
extern int *__errno _PARAMS ((void));
#endif
-#if !defined(__CYGWIN__) || defined(__INSIDE_CYGWIN__)
-extern _CONST char * _CONST _sys_errlist[];
-extern int _sys_nerr;
-#else
-extern _CONST char * _CONST _sys_errlist[] __declspec(dllimport);
-extern int _sys_nerr __declspec(dllimport);
-#endif
+extern __IMPORT _CONST char * _CONST _sys_errlist[];
+extern __IMPORT int _sys_nerr;
#define __errno_r(ptr) ((ptr)->_errno)