From: Sascha Schumann Date: Thu, 14 Dec 2000 15:58:14 +0000 (+0000) Subject: Don't define LC_MESSAGES, if LC_MESSAGES is not defined. X-Git-Tag: php-4.0.5RC1~897 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0daf14cb3d5fb3f9aa2cc79231399ed6773455d;p=php Don't define LC_MESSAGES, if LC_MESSAGES is not defined. PR: #8259 --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 4bdc04ac51..f32c901a8e 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -60,7 +60,7 @@ void register_string_constants(INIT_FUNC_ARGS) REGISTER_LONG_CONSTANT("LC_COLLATE", LC_COLLATE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("LC_MONETARY", LC_MONETARY, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("LC_ALL", LC_ALL, CONST_CS | CONST_PERSISTENT); -# if !PHP_WIN32 +# ifdef LC_MESSAGES REGISTER_LONG_CONSTANT("LC_MESSAGES", LC_MESSAGES, CONST_CS | CONST_PERSISTENT); # endif #endif