From: Indrek Ardel Date: Sat, 24 Oct 2015 11:12:38 +0000 (+0300) Subject: Fix a compilation warning under windows X-Git-Tag: v6.0.0~27^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=575eea255e51c1904f738f7faee9bc77e71e380f;p=onig Fix a compilation warning under windows warning C4133: 'function' : incompatible types - from 'hash_data_type *' to 'st_data_t *' --- diff --git a/regint.h b/regint.h index 0fba09b..406e08b 100644 --- a/regint.h +++ b/regint.h @@ -789,7 +789,12 @@ extern int onig_is_code_in_cc_len P_((int enclen, OnigCodePoint code, CClassNod /* strend hash */ typedef void hash_table_type; +#ifdef _WIN32 +# include +typedef ULONG_PTR hash_data_type; +#else typedef unsigned long hash_data_type; +#endif extern hash_table_type* onig_st_init_strend_table_with_size P_((int size)); extern int onig_st_lookup_strend P_((hash_table_type* table, const UChar* str_key, const UChar* end_key, hash_data_type *value));