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: Bruno Haible
Subject: Re: make safe_read usable in a mixed C/C++ build
Date: Tue, 2 Jan 2007 19:06:44 +0100
User-agent: KMail/1.9.1

Eric Blake asked:
> 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?

Normally not. The 'extern "C"' is only needed in mixed C/C++ builds.

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

I deal with these issues on a case-by-case basis. But if you want to add
extern "C" to all gnulib .h files at once, I have no objection.

Bruno




reply via email to

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