From dd57c9e519dcd82b3d7f67af7e6168e8e63993e9 Mon Sep 17 00:00:00 2001 From: JoungKyun Kim Date: Thu, 5 May 2016 17:05:13 +0900 Subject: [PATCH] add CHARDET_BINARY_SAFE macro for issue #8 --- src/chardet.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/chardet.h b/src/chardet.h index 1502601..5b39e60 100644 --- a/src/chardet.h +++ b/src/chardet.h @@ -80,6 +80,8 @@ #define CHARDET_NO_RESULT 1 #define CHARDET_NULL_OBJECT 2 +// support detect_r and detect_handledata_r API +#define CHARDET_BINARY_SAFE 1 #ifdef __cplusplus extern "C" {