diff options
| author | Alex Dowad <alexinbeijing@gmail.com> | 2020-07-05 20:05:29 +0200 |
|---|---|---|
| committer | Alex Dowad <alexinbeijing@gmail.com> | 2020-08-31 23:18:13 +0200 |
| commit | 7eddcabe2b63a9834f6bde1f01b96503612e9e4a (patch) | |
| tree | 1d8ddfebf1ae26a728349f5079277afbfc7279aa /ext/mbstring/php_unicode.h | |
| parent | 62317d592fd6e6df34e68214c9277a979c898de6 (diff) | |
| download | php-git-7eddcabe2b63a9834f6bde1f01b96503612e9e4a.tar.gz | |
Don't guard mbstring code with #ifdef HAVE_MBSTRING
This is just a very silly feature of mbstring -- you can compile the source files with
HAVE_MBSTRING undefined, and it will all just compile to (almost) nothing. What is the
use of this? Why compile the source files and link against them if you don't want the
mbstring extension? It doesn't make any kind of sense.
Diffstat (limited to 'ext/mbstring/php_unicode.h')
| -rw-r--r-- | ext/mbstring/php_unicode.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ext/mbstring/php_unicode.h b/ext/mbstring/php_unicode.h index 26d0979ca4..445f6f3a8d 100644 --- a/ext/mbstring/php_unicode.h +++ b/ext/mbstring/php_unicode.h @@ -31,8 +31,6 @@ #ifndef PHP_UNICODE_H #define PHP_UNICODE_H -#ifdef HAVE_MBSTRING - #define UC_MN 0 /* Mark, Non-Spacing */ #define UC_MC 1 /* Mark, Spacing Combining */ #define UC_ME 2 /* Mark, Enclosing */ @@ -190,8 +188,4 @@ static inline int php_unicode_is_upper(unsigned long code) { #define php_unicode_is_cased(cc) php_unicode_is_prop1(cc, UC_CASED) #define php_unicode_is_case_ignorable(cc) php_unicode_is_prop1(cc, UC_CASE_IGNORABLE) - -#endif - - #endif /* PHP_UNICODE_H */ |
