1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00

Oops, true/false are not defined on Linux. They are on OSX.

This commit is contained in:
Rasmus Lerdorf
2009-08-07 17:32:31 +00:00
parent 934a9037c8
commit 2ee8b65e4e

View File

@@ -105,7 +105,8 @@ PHPAPI int strnatcmp_ex(char const *a, size_t a_len, char const *b, size_t b_len
char const *ap, *bp;
char const *aend = a + a_len,
*bend = b + b_len;
int fractional, result, leading = true;
int fractional, result;
short leading = 1;
if (a_len == 0 || b_len == 0)
return a_len - b_len;
@@ -124,7 +125,7 @@ PHPAPI int strnatcmp_ex(char const *a, size_t a_len, char const *b, size_t b_len
cb = *++bp;
}
leading = false;
leading = 0;
/* process run of digits */
if (isdigit((int)(unsigned char)ca) && isdigit((int)(unsigned char)cb)) {