This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cygwin-1.7 support


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]