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" {