bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make safe_read usable in a mixed C/C++ build


From: Eric Blake
Subject: Re: make safe_read usable in a mixed C/C++ build
Date: Sat, 23 Dec 2006 22:09:21 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666

-----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 wrap safe-read.c with extern "C", for use when
using g++ as a type-safe variant of a C compiler, to match the header?  Or
do you intend that safe-read.c always be compiled by gcc, even when trying
to compile the rest of a C-based project with g++?

And should you be symmetric with safe-write.h?

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFjguB84KuGfSFAYARAoDNAKCkYjsNfg8J0CciovetW+YZ0w9L3wCdF12/
dVTKVtf8lDaBZ6ojxOtf6xc=
=xv7T
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]