1# --- T2-COPYRIGHT-NOTE-BEGIN ---
2# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3# 
4# T2 SDE: package/.../gettext/wchar-fix.patch
5# Copyright (C) 2008 The T2 SDE Project
6# 
7# More information can be found in the files COPYING and README.
8# 
9# This patch file is dual-licensed. It is available under the license the
10# patched project is licensed under, as long as it is an OpenSource license
11# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12# of the GNU General Public License as published by the Free Software
13# Foundation; either version 2 of the License, or (at your option) any later
14# version.
15# --- T2-COPYRIGHT-NOTE-END ---
16# --- T2-COPYRIGHT-NOTE-BEGIN ---
17# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
18# 
19# T2 SDE: package/.../gettext/wchar-fix.patch
20# Copyright (C) 2008 The T2 SDE Project
21# 
22# More information can be found in the files COPYING and README.
23# 
24# This patch file is dual-licensed. It is available under the license the
25# patched project is licensed under, as long as it is an OpenSource license
26# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
27# of the GNU General Public License as published by the Free Software
28# Foundation; either version 2 of the License, or (at your option) any later
29# version.
30# --- T2-COPYRIGHT-NOTE-END ---
31#
32# Taken from: http://svn.exactcode.de/t2/trunk/package/base/gettext/wchar-fix.patch
33#
34
35diff -pruN gettext-0.17.orig//gettext-runtime/gnulib-lib/wchar.in.h gettext-0.17/gettext-runtime/gnulib-lib/wchar.in.h
36--- gettext-0.17.orig//gettext-runtime/gnulib-lib/wchar.in.h	2010-02-17 15:36:18.822918689 +0100
37+++ gettext-0.17/gettext-runtime/gnulib-lib/wchar.in.h	2010-02-17 15:38:37.686548691 +0100
38@@ -26,6 +26,14 @@
39  * the declaration of wcwidth().
40  */
41 
42+#ifdef __need_mbstate_t
43+/* Special invocation convention inside glibc header files.  */
44+
45+#@INCLUDE_NEXT@ @NEXT_WCHAR_H@
46+
47+#else
48+/* Normal invocation convention.  */
49+
50 #ifndef _GL_WCHAR_H
51 
52 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
53@@ -80,3 +88,4 @@ extern int wcwidth (int /* actually wcha
54 
55 #endif /* _GL_WCHAR_H */
56 #endif /* _GL_WCHAR_H */
57+#endif
58diff -pruN gettext-0.17.orig//gettext-tools/gnulib-lib/wchar.in.h gettext-0.17/gettext-tools/gnulib-lib/wchar.in.h
59--- gettext-0.17.orig//gettext-tools/gnulib-lib/wchar.in.h	2010-02-17 15:36:21.302471149 +0100
60+++ gettext-0.17/gettext-tools/gnulib-lib/wchar.in.h	2010-02-17 15:40:10.667180066 +0100
61@@ -26,6 +26,14 @@
62  * the declaration of wcwidth().
63  */
64 
65+#ifdef __need_mbstate_t
66+/* Special invocation convention inside glibc header files.  */
67+
68+#@INCLUDE_NEXT@ @NEXT_WCHAR_H@
69+
70+#else
71+/* Normal invocation convention.  */
72+
73 #ifndef _GL_WCHAR_H
74 
75 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
76@@ -80,3 +88,4 @@ extern int wcwidth (int /* actually wcha
77 
78 #endif /* _GL_WCHAR_H */
79 #endif /* _GL_WCHAR_H */
80+#endif
81diff -pruN gettext-0.17.orig//gettext-tools/libgettextpo/wchar.in.h gettext-0.17/gettext-tools/libgettextpo/wchar.in.h
82--- gettext-0.17.orig//gettext-tools/libgettextpo/wchar.in.h	2010-02-17 15:36:19.870408142 +0100
83+++ gettext-0.17/gettext-tools/libgettextpo/wchar.in.h	2010-02-17 15:40:48.206658667 +0100
84@@ -26,6 +26,14 @@
85  * the declaration of wcwidth().
86  */
87 
88+#ifdef __need_mbstate_t
89+/* Special invocation convention inside glibc header files.  */
90+
91+#@INCLUDE_NEXT@ @NEXT_WCHAR_H@
92+
93+#else
94+/* Normal invocation convention.  */
95+
96 #ifndef _GL_WCHAR_H
97 
98 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
99@@ -80,3 +88,4 @@ extern int wcwidth (int /* actually wcha
100 
101 #endif /* _GL_WCHAR_H */
102 #endif /* _GL_WCHAR_H */
103+#endif
104