OSDN Git Service

Fix this patch:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Mar 2008 00:19:55 +0000 (00:19 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Mar 2008 00:19:55 +0000 (00:19 +0000)
* md5.h: Add extern "C" when compiled with C++.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133502 138bc75d-0d04-0410-961f-82ee72b054a4

include/md5.h

index c8602ee..b3ff4e1 100644 (file)
 #ifndef _MD5_H
 #define _MD5_H 1
 
 #ifndef _MD5_H
 #define _MD5_H 1
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #include <stdio.h>
 
 #if defined HAVE_LIMITS_H || _LIBC
 #include <stdio.h>
 
 #if defined HAVE_LIMITS_H || _LIBC
@@ -76,6 +72,10 @@ typedef uintptr_t md5_uintptr;
 typedef unsigned long int md5_uintptr;
 #endif
 
 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
 {
 /* Structure to save state of computation between the single steps.  */
 struct md5_ctx
 {