Added CPP compatibility macro
authoryann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd>
Mon, 25 Apr 2011 08:24:43 +0000 (08:24 +0000)
committeryann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd>
Mon, 25 Apr 2011 08:24:43 +0000 (08:24 +0000)
git-svn-id: https://lz4.googlecode.com/svn/trunk@3 650e7d94-2a16-8b24-b05c-7c0b3f6821cd

LZ4.h

diff --git a/LZ4.h b/LZ4.h
index a3e8d8e..25a8cb2 100644 (file)
--- a/LZ4.h
+++ b/LZ4.h
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\r
 */\r
 \r
+#if defined (__cplusplus)\r
+extern "C" {\r
+#endif\r
+\r
 \r
 //****************************\r
 // Simple Functions\r
@@ -53,3 +57,7 @@ LZ4_compressCtx :
        Use different pointers for different threads when doing multi-threading.\r
 */\r
 \r
+\r
+#if defined (__cplusplus)\r
+}\r
+#endif\r