shithub: openh264

Download patch

ref: 7a4a066469be598f999f238ffc451257d6387769
parent: fdd79e734a8fc9dfd6f17c7decc67d824e901cdd
author: Martin Storsjö <[email protected]>
date: Mon Feb 17 07:11:15 EST 2014

Make the SHA1 header compatible with C++

--- a/test/sha1.h
+++ b/test/sha1.h
@@ -46,6 +46,10 @@
 #ifndef _SHA1_H_
 #define _SHA1_H_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  *  This structure will hold context information for the hashing
  *  operation
@@ -72,5 +76,9 @@
 void SHA1Input( SHA1Context *,
                 const unsigned char *,
                 unsigned);
+
+#ifdef __cplusplus
+}
+#endif
 
 #endif