aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorChristian Franke <christian.franke@t-online.de>2024-02-27 13:03:08 +0100
committerCorinna Vinschen <corinna@vinschen.de>2024-02-28 09:59:07 +0100
commit6f996d7751bf25f7e4282da631eb79b93662e484 (patch)
treec31026eecb84c9f2b5669a54613199645b861f50 /newlib
parent7a89f7261dc22f2bc65bc5b4dd6ddd48171a2991 (diff)
downloadnewlib-6f996d7751bf25f7e4282da631eb79b93662e484.zip
newlib-6f996d7751bf25f7e4282da631eb79b93662e484.tar.gz
newlib-6f996d7751bf25f7e4282da631eb79b93662e484.tar.bz2
Cygwin: add compile warning if ENOSHARE or ECASECLASH is used
These errno values are no longer used by Cygwin. Signed-off-by: Christian Franke <christian.franke@t-online.de>
Diffstat (limited to 'newlib')
-rw-r--r--newlib/libc/include/sys/errno.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/include/sys/errno.h b/newlib/libc/include/sys/errno.h
index f150971..7199db0 100644
--- a/newlib/libc/include/sys/errno.h
+++ b/newlib/libc/include/sys/errno.h
@@ -176,9 +176,9 @@ extern __IMPORT char *program_invocation_short_name;
#ifdef __LINUX_ERRNO_EXTENSIONS__
#define ENOMEDIUM 135 /* No medium (in tape drive) */
#endif
-#ifdef __CYGWIN__
-#define ENOSHARE 136 /* No such host or network path */
-#define ECASECLASH 137 /* Filename exists with different case */
+#if defined(__CYGWIN__) && !defined(__INSIDE_CYGWIN__)
+#define ENOSHARE (_Pragma("GCC warning \"'ENOSHARE' is no longer used by Cygwin\"") 136)
+#define ECASECLASH (_Pragma("GCC warning \"'ECASECLASH' is no longer used by Cygwin\"") 137)
#endif
#define EILSEQ 138 /* Illegal byte sequence */
#define EOVERFLOW 139 /* Value too large for defined data type */