From: Ian Lance Taylor Date: Tue, 25 Mar 2008 00:19:55 +0000 (+0000) Subject: Fix this patch: X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8e291ddfb2b1e16d6c0355b2f92c6ac7d2241a06;p=gcc.git Fix this patch: * md5.h: Add extern "C" when compiled with C++. From-SVN: r133502 --- diff --git a/include/md5.h b/include/md5.h index c8602ee1400..b3ff4e14538 100644 --- a/include/md5.h +++ b/include/md5.h @@ -21,10 +21,6 @@ #ifndef _MD5_H #define _MD5_H 1 -#ifdef __cplusplus -extern "C" { -#endif - #include #if defined HAVE_LIMITS_H || _LIBC @@ -76,6 +72,10 @@ typedef uintptr_t md5_uintptr; typedef unsigned long int md5_uintptr; #endif +#ifdef __cplusplus +extern "C" { +#endif + /* Structure to save state of computation between the single steps. */ struct md5_ctx {