From b0734c30a5d973776fe7fd93e611f3a93652c41a Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Mon, 21 Oct 2013 16:36:43 +0900 Subject: [PATCH] fix on Windows64. https://bugs.php.net/64769 --- oniguruma.h | 7 ++++++- st.h | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/oniguruma.h b/oniguruma.h index 82787af..206d93a 100644 --- a/oniguruma.h +++ b/oniguruma.h @@ -96,8 +96,13 @@ extern "C" { #define UChar OnigUChar #endif -typedef unsigned char OnigUChar; +#ifdef _WIN32 +# include +typedef ULONG_PTR OnigCodePoint; +#else typedef unsigned long OnigCodePoint; +#endif +typedef unsigned char OnigUChar; typedef unsigned int OnigCtype; typedef unsigned int OnigDistance; diff --git a/st.h b/st.h index da65e7f..6f93870 100644 --- a/st.h +++ b/st.h @@ -6,7 +6,12 @@ #define ST_INCLUDED +#ifdef _WIN32 +# include +typedef ULONG_PTR st_data_t; +#else typedef unsigned long st_data_t; +#endif #define ST_DATA_T_DEFINED typedef struct st_table st_table; -- 2.40.0