summaryrefslogtreecommitdiff
path: root/locale.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2014-02-19 15:39:18 -0700
committerKarl Williamson <public@khwilliamson.com>2014-02-19 15:44:32 -0700
commit730252b299f0cde0043bed7edb5bcf0c3e37fd38 (patch)
tree8acc184fbe276bd4202593dcd795561fab253b0f /locale.c
parent6a188f46435c74e7ced12ece237a7fdb3923a609 (diff)
downloadperl-730252b299f0cde0043bed7edb5bcf0c3e37fd38.tar.gz
locale.c: Change 'and' to '&&'
To actually compile on Windows
Diffstat (limited to 'locale.c')
-rw-r--r--locale.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/locale.c b/locale.c
index d52559be59..3fc55a82ab 100644
--- a/locale.c
+++ b/locale.c
@@ -421,37 +421,37 @@ Perl_my_setlocale(pTHX_ int category, const char* locale)
* we just set LC_ALL to, so can skip) */
# ifdef USE_LOCALE_TIME
result = PerlEnv_getenv("LC_TIME");
- if (result and strNE(result, "")) {
+ if (result && strNE(result, "")) {
setlocale(LC_TIME, result);
}
# endif
# ifdef USE_LOCALE_CTYPE
result = PerlEnv_getenv("LC_CTYPE");
- if (result and strNE(result, "")) {
+ if (result && strNE(result, "")) {
setlocale(LC_CTYPE, result);
}
# endif
# ifdef USE_LOCALE_COLLATE
result = PerlEnv_getenv("LC_COLLATE");
- if (result and strNE(result, "")) {
+ if (result && strNE(result, "")) {
setlocale(LC_COLLATE, result);
}
# endif
# ifdef USE_LOCALE_MONETARY
result = PerlEnv_getenv("LC_MONETARY");
- if (result and strNE(result, "")) {
+ if (result && strNE(result, "")) {
setlocale(LC_MONETARY, result);
}
# endif
# ifdef USE_LOCALE_NUMERIC
result = PerlEnv_getenv("LC_NUMERIC");
- if (result and strNE(result, "")) {
+ if (result && strNE(result, "")) {
setlocale(LC_NUMERIC, result);
}
# endif
# ifdef USE_LOCALE_MESSAGES
result = PerlEnv_getenv("LC_MESSAGES");
- if (result and strNE(result, "")) {
+ if (result && strNE(result, "")) {
setlocale(LC_MESSAGES, result);
}
# endif