This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH COMMITTED: Make include/md5.h C++ safe
- From: "Andrew Pinski" <pinskia at gmail dot com>
- To: "Ian Lance Taylor" <iant at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 24 Mar 2008 16:45:20 -0700
- Subject: Re: PATCH COMMITTED: Make include/md5.h C++ safe
- References: <m3r6dzg04r.fsf@google.com>
On Mon, Mar 24, 2008 at 4:42 PM, Ian Lance Taylor <iant@google.com> wrote:
> I committed this patch to make include/md5.h C++ safe.
Except it is wrong as it wraps the include for stdio.h too:
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdio.h>
You should not be wrapping extern "C" around includes.
Thanks,
Andrew Pinski