Files
MSYS2-packages/libedit/libedit-20130712-1.src.patch
2013-11-04 13:28:04 +04:00

39 lines
1.4 KiB
Diff

--- origsrc/libedit-20130712-3.1/src/chartype.h 2012-03-11 10:54:58.000000000 +0100
+++ src/libedit-20130712-3.1/src/chartype.h 2013-10-20 13:54:52.166608497 +0200
@@ -56,9 +56,11 @@
/* Oh for a <uchar.h> with char32_t and __STDC_UTF_32__ in it...
* ref: ISO/IEC DTR 19769
*/
+#ifndef __CYGWIN__
#if WCHAR_MAX < INT32_MAX
#warning Build environment does not support non-BMP characters
#endif
+#endif
#ifndef HAVE_WCSDUP
wchar_t *wcsdup(const wchar_t *s);
--- origsrc/libedit-20130712-3.1/src/editline/readline.h 2013-06-01 17:46:07.000000000 +0200
+++ src/libedit-20130712-3.1/src/editline/readline.h 2013-10-20 13:54:52.202608341 +0200
@@ -75,7 +75,7 @@ typedef KEYMAP_ENTRY *Keymap;
#ifndef CTRL
#include <sys/ioctl.h>
-#if !defined(__sun) && !defined(__hpux) && !defined(_AIX)
+#if !defined(__sun) && !defined(__hpux) && !defined(_AIX) && !defined(__CYGWIN__)
#include <sys/ttydefaults.h>
#endif
#ifndef CTRL
--- origsrc/libedit-20130712-3.1/src/vi.c 2013-07-12 16:13:34.000000000 +0200
+++ src/libedit-20130712-3.1/src/vi.c 2013-10-20 13:54:52.234608202 +0200
@@ -918,6 +918,10 @@ vi_comment_out(EditLine *el, Int c __att
* NB: posix implies that we should enter insert mode, however
* this is against historical precedent...
*/
+#ifdef __CYGWIN__
+#undef __weak_reference
+#endif
+
#ifdef __weak_reference
__weakref_visible char *my_get_alias_text(const char *)
__weak_reference(get_alias_text);