This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH COMMITTED: Make include/md5.h C++ safe


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]