diff --git a/ext/date/php_date.c b/ext/date/php_date.c | |
index 68235c4..8a17859 100644 | |
--- a/ext/date/php_date.c | |
+++ b/ext/date/php_date.c | |
@@ -1,4 +1,4 @@ | |
-/* | |
+/* | |
+----------------------------------------------------------------------+ | |
| PHP Version 7 | | |
+----------------------------------------------------------------------+ | |
@@ -31,9 +31,12 @@ | |
#include "lib/timelib.h" | |
#include "lib/timelib_private.h" | |
#ifndef PHP_WIN32 | |
-#include <time.h> | |
+# include <time.h> | |
+# ifdef __MINGW32__ | |
+typedef long suseconds_t; | |
+# endif | |
#else | |
-#include "win32/time.h" | |
+# include "win32/time.h" | |
#endif | |
#ifdef PHP_WIN32 | |
diff --git a/main/php.h b/main/php.h | |
index 6dc05ca..3f6e663 100644 | |
--- a/main/php.h | |
+++ b/main/php.h | |
@@ -125,6 +125,10 @@ typedef int pid_t; | |
# endif | |
#endif | |
+#ifdef __MINGW32__ | |
+typedef uint8_t u_char; | |
+#endif | |
+ | |
#if HAVE_ASSERT_H | |
#if PHP_DEBUG | |
#undef NDEBUG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment