Cygwin-1.7 support
Reini Urban
rurban@x-ray.at
Wed Jun 24 12:03:00 GMT 2009
Cygwin 1.7 comes with wchar.h (finally) so we need this patch.
(inlined)
Tested okay.
diff -u xemacs-21.5.28/src/syswindows.h.orig xemacs-21.5.28/src/syswindows.h
--- xemacs-21.5.28/src/syswindows.h.orig 2006-12-08 03:22:02.000000000 +0100
+++ xemacs-21.5.28/src/syswindows.h 2009-06-24 12:01:06.546875000 +0200
@@ -481,7 +481,10 @@
#ifdef CYGWIN
-/* All but wcscmp and wcslen left out of Cygwin headers -- but present
+#if (CYGWIN_VERSION_API_MINOR >= 181)
+# include <wchar.h>
+#else
+/* All but wcscmp and wcslen left out of Cygwin 1.5 headers -- but present
in /usr/include/mingw/string.h! */
wchar_t* wcscat (wchar_t*, const wchar_t*);
wchar_t* wcschr (const wchar_t*, wchar_t);
@@ -499,6 +502,7 @@
wchar_t* wcsstr (const wchar_t*, const wchar_t*);
wchar_t* wcstok (wchar_t*, const wchar_t*);
size_t wcsxfrm (wchar_t*, const wchar_t*, size_t);
+#endif /* CYGWIN 1.5 */
#endif /* CYGWIN */
--
Reini Urban
http://phpwiki.org/ http://murbreak.at/
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list