X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/700256bbdbf40042ecadad340f7909589a8f7ecc..9142a5ec3f9e9232d47ef09fe4a3c96f39816dc4:/src/common/intl.cpp diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 16bdbd4563..f8b011a917 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -5,7 +5,6 @@ // Modified by: Michael N. Filippov // (2003/09/30 - PluralForms support) // Created: 29/01/98 -// RCS-ID: $Id$ // Copyright: (c) 1998 Vadim Zeitlin // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -571,12 +570,14 @@ bool wxLocale::Init(int language, int flags) namespace { +#ifndef __WXOSX__ // Small helper function: get the value of the given environment variable and // return true only if the variable was found and has non-empty value. inline bool wxGetNonEmptyEnvVar(const wxString& name, wxString* value) { return wxGetEnv(name, value) && !value->empty(); } +#endif } // anonymous namespace @@ -591,7 +592,7 @@ inline bool wxGetNonEmptyEnvVar(const wxString& name, wxString* value) #if defined(__UNIX__) // first get the string identifying the language from the environment wxString langFull; -#ifdef __WXMAC__ +#ifdef __WXOSX__ wxCFRef userLocaleRef(CFLocaleCopyCurrent()); // because the locale identifier (kCFLocaleIdentifier) is formatted a little bit differently, eg