From f6914ba60929b14a527b67fada047c45967d79a0 Mon Sep 17 00:00:00 2001 From: thebattery Date: Sat, 17 May 2014 17:16:59 -0300 Subject: [PATCH] Update smaz.h so it will compile on C++ --- smaz.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/smaz.h b/smaz.h index ce9c35d..39fd68d 100644 --- a/smaz.h +++ b/smaz.h @@ -1,7 +1,16 @@ #ifndef _SMAZ_H #define _SMAZ_H +#ifdef __cplusplus +extern "C" +{ +#endif //__cplusplus + int smaz_compress(char *in, int inlen, char *out, int outlen); int smaz_decompress(char *in, int inlen, char *out, int outlen); +#ifdef __cplusplus +}; +#endif //__cplusplus + #endif