From: Anatol Belski Date: Fri, 8 Apr 2016 10:48:26 +0000 (+0200) Subject: fix compat for ICU < 50 X-Git-Tag: php-7.0.6RC1~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45d9efaac3ff4f861f86093d801aefd1b4fde9e5;p=php fix compat for ICU < 50 --- diff --git a/ext/intl/dateformat/dateformat_create.cpp b/ext/intl/dateformat/dateformat_create.cpp index 8705d4bc0b..0e73fda01c 100644 --- a/ext/intl/dateformat/dateformat_create.cpp +++ b/ext/intl/dateformat/dateformat_create.cpp @@ -36,6 +36,10 @@ extern "C" { #include "dateformat_helpers.h" #include "zend_exceptions.h" +#if U_ICU_VERSION_MINOR_NUM < 50 +#define UDAT_PATTERN 0 +#endif + #define INTL_UDATE_FMT_OK(i) \ (UDAT_FULL == (i) || UDAT_LONG == (i) || \ UDAT_MEDIUM == (i) || UDAT_SHORT == (i) || \