Commit 8e291ddf by Ian Lance Taylor

Fix this patch:

	* md5.h: Add extern "C" when compiled with C++.

From-SVN: r133502
parent 538de5e6
...@@ -21,10 +21,6 @@ ...@@ -21,10 +21,6 @@
#ifndef _MD5_H #ifndef _MD5_H
#define _MD5_H 1 #define _MD5_H 1
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h> #include <stdio.h>
#if defined HAVE_LIMITS_H || _LIBC #if defined HAVE_LIMITS_H || _LIBC
...@@ -76,6 +72,10 @@ typedef uintptr_t md5_uintptr; ...@@ -76,6 +72,10 @@ typedef uintptr_t md5_uintptr;
typedef unsigned long int md5_uintptr; typedef unsigned long int md5_uintptr;
#endif #endif
#ifdef __cplusplus
extern "C" {
#endif
/* Structure to save state of computation between the single steps. */ /* Structure to save state of computation between the single steps. */
struct md5_ctx struct md5_ctx
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment