Bruno Haible <[EMAIL PROTECTED]> writes:
> ! #if HAVE_WCHAR_H
> ! # include
> ! #else
> ! # ifndef iswprint
> ! # define iswprint(wc) 1
> ! # endif
> ! #endif
That should work, but I'd prefer something less intrusive on uses of
the module, so that the source code says only "#include ".
I'm wil
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Bruno Haible on 12/23/2006 8:41 AM:
> Hi Jim,
>
> For some complicated reasons (too long to explain here), gettext needs to
> use safe-read.h with a C++ compiler on mingw and cygwin. Is this patch ok
> with you?
Is it also necessary to w
On Sat, Dec 23, 2006 at 10:06:54AM +0100, Rask Ingemann Lambertsen wrote:
> a[0] = 1;
Oops, that should be a[0] = 0 or any other value than 1.
--
Rask Ingemann Lambertsen
On Fri, Dec 22, 2006 at 01:58:39AM +0100, Denis Vlasenko wrote:
>
> Or this, absolutely typical C code. i386 arch can compare
> 16 bits at a time here (luckily, no alighment worries on this arch):
>
> # cat tt.c
> int f(char *p)
> {
> if (p[0] == 1 && p[1] == 2) return 1;
> return 0;
> }
Bruno Haible <[EMAIL PROTECTED]> wrote:
> For some complicated reasons (too long to explain here), gettext needs to
> use safe-read.h with a C++ compiler on mingw and cygwin. Is this patch ok
> with you?
>
> 2006-12-23 Bruno Haible <[EMAIL PROTECTED]>
>
> * lib/safe-read.h [C++]: Wrap decla
On Saturday 23 December 2006 10:06, Rask Ingemann Lambertsen wrote:
>No, because you'd read past the end of the array:
>
> #include
>
> int main (int argc, char *argv[])
> {
> char *a;
> if ((a == malloc (sizeof (char
> {
> int r;
>
> a[0] = 1;
> r = f (a);
>
Hi Jim,
For some complicated reasons (too long to explain here), gettext needs to
use safe-read.h with a C++ compiler on mingw and cygwin. Is this patch ok
with you?
2006-12-23 Bruno Haible <[EMAIL PROTECTED]>
* lib/safe-read.h [C++]: Wrap declarations in extern "C".
*** gnulib-20061
This fixes a build error on mingw, if you happen to use the sys_stat module
together with the canonicalize-lgpl module.
2006-12-23 Bruno Haible <[EMAIL PROTECTED]>
* lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
S_ISLNK.
Needed because gnulib's sys