summaryrefslogtreecommitdiff
path: root/lzfP.h
diff options
context:
space:
mode:
Diffstat (limited to 'lzfP.h')
-rw-r--r--lzfP.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lzfP.h b/lzfP.h
index eb7a742..014a152 100644
--- a/lzfP.h
+++ b/lzfP.h
@@ -129,7 +129,11 @@ typedef const u8 *LZF_STATE[1 << (HLOG)];
#endif
#if USE_MEMCPY || INIT_HTAB
-# include <string.h>
+# ifdef __cplusplus
+# include <cstring>
+# else
+# include <string.h>
+# endif
#endif
#endif