mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Update def of GSSetLocale
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15249 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f0673d8bc6
commit
b996c9bca5
5 changed files with 31 additions and 11 deletions
|
@ -44,6 +44,10 @@
|
|||
#include <Foundation/NSObjCRuntime.h>
|
||||
#include <Foundation/NSMapTable.h>
|
||||
#include <limits.h>
|
||||
#include <Foundation/GSLocale.h>
|
||||
#ifdef HAVE_LOCALE_H
|
||||
#include <locale.h>
|
||||
#endif
|
||||
|
||||
#include "GSPrivate.h"
|
||||
|
||||
|
@ -770,7 +774,6 @@ static BOOL double_release_check_enabled = NO;
|
|||
if (self == [NSObject class])
|
||||
{
|
||||
extern void GSBuildStrings(void); // See externs.m
|
||||
extern const char* GSSetLocaleC(const char*); // See GSLocale.m
|
||||
|
||||
#ifdef __MINGW__
|
||||
// See libgnustep-base-entry.m
|
||||
|
@ -791,7 +794,9 @@ static BOOL double_release_check_enabled = NO;
|
|||
}
|
||||
#endif
|
||||
|
||||
GSSetLocaleC(""); // Set up locale from environment.
|
||||
#ifdef HAVE_LOCALE_H
|
||||
GSSetLocaleC(LC_ALL, ""); // Set up locale from environment.
|
||||
#endif
|
||||
|
||||
// Create the global lock
|
||||
gnustep_global_lock = [NSRecursiveLock new];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue