diff options
author | Karl Williamson <khw@cpan.org> | 2015-03-07 11:10:13 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2015-03-07 11:28:28 -0700 |
commit | e33057904642d3ac97c1974cfae10cb0c1db9041 (patch) | |
tree | 9e086b0c57f9e0b90386273d95df30ff722e7b31 /locale.c | |
parent | 1eac213ad23c12a812d4794440e893443bbb12d2 (diff) | |
download | perl-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |