summaryrefslogtreecommitdiff
path: root/locale.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2015-03-07 11:10:13 -0700
committerKarl Williamson <khw@cpan.org>2015-03-07 11:28:28 -0700
commite33057904642d3ac97c1974cfae10cb0c1db9041 (patch)
tree9e086b0c57f9e0b90386273d95df30ff722e7b31 /locale.c
parent1eac213ad23c12a812d4794440e893443bbb12d2 (diff)
downloadperl-e33057904642d3ac97c1974cfae10cb0c1db9041.tar.gz
locale.c: Move statements properly within #if
The variables in these statments were undefined when compiled with ccflag -DNO_LOCALE, because the declarations are skipped then. Just move them a few lines up so are within the same #if.
Diffstat (limited to 'locale.c')
-rw-r--r--locale.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/locale.c b/locale.c
index 6c62c1ffad..4f0f4476b5 100644
--- a/locale.c
+++ b/locale.c
@@ -1080,10 +1080,6 @@ Perl_init_i18nl10n(pTHX_ int printwarn)
Safefree(curnum);
#endif /* USE_LOCALE_NUMERIC */
-#else /* !USE_LOCALE */
- PERL_UNUSED_ARG(printwarn);
-#endif /* USE_LOCALE */
-
#ifdef __GLIBC__
Safefree(language);
#endif
@@ -1091,6 +1087,10 @@ Perl_init_i18nl10n(pTHX_ int printwarn)
Safefree(lc_all);
Safefree(lang);
+#else /* !USE_LOCALE */
+ PERL_UNUSED_ARG(printwarn);
+#endif /* USE_LOCALE */
+
return ok;
}