* Source/GSLocale.m (GSDefaultLanguageLocale): Add missing check

for LC_MESSAGES definition.
This broke compilation on Windows.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34867 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2012-03-02 21:38:41 +00:00
parent 592f8b39c8
commit fd8ffb6e42
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2012-03-02 Fred Kiefer <FredKiefer@gmx.de>
* Source/GSLocale.m (GSDefaultLanguageLocale): Add missing check
for LC_MESSAGES definition.
2012-03-02 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSString.m: Compatribility fix ... copy strings implicitly

View file

@ -321,6 +321,7 @@ NSString *GSDefaultLanguageLocale()
NSString *backup, *locale = nil;
#ifdef HAVE_LOCALE_H
#ifdef LC_MESSAGES
[gnustep_global_lock lock];
backup = privateSetLocale(LC_ALL, nil);
@ -329,6 +330,7 @@ NSString *GSDefaultLanguageLocale()
privateSetLocale(LC_ALL, backup);
[gnustep_global_lock unlock];
#endif
#endif
return locale;