diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/SetLocale.c | 13 | ||||
-rw-r--r-- | src/xlibi18n/XlcPubI.h | 8 |
2 files changed, 19 insertions, 2 deletions
diff --git a/src/SetLocale.c b/src/SetLocale.c index 07996df6..32fe7c28 100644 --- a/src/SetLocale.c +++ b/src/SetLocale.c @@ -55,7 +55,7 @@ other dealings in this Software without prior written authorization from The Open Group. */ -/* $XFree86: xc/lib/X11/SetLocale.c,v 3.20 2003/11/17 22:20:08 dawes Exp $ */ +/* $XFree86: xc/lib/X11/SetLocale.c,v 3.21 2004/02/11 00:30:44 torrey Exp $ */ #include "Xlibint.h" #include "Xlcint.h" @@ -117,6 +117,17 @@ _Xsetlocale( #else /* X_LOCALE */ +#ifdef __DARWIN__ +char * +_Xsetlocale( + int category, + _Xconst char *name +) +{ + return setlocale(category, name); +} +#endif /* __DARWIN__ */ + /* * _XlcMapOSLocaleName is an implementation dependent routine that derives * the LC_CTYPE locale name as used in the sample implementation from that diff --git a/src/xlibi18n/XlcPubI.h b/src/xlibi18n/XlcPubI.h index 64504eaf..86a1792f 100644 --- a/src/xlibi18n/XlcPubI.h +++ b/src/xlibi18n/XlcPubI.h @@ -23,7 +23,7 @@ * Author: Katsuhisa Yano TOSHIBA Corp. * mopi@osa.ilab.toshiba.co.jp */ -/* $XFree86: xc/lib/X11/XlcPubI.h,v 3.14 2003/11/17 22:20:10 dawes Exp $ */ +/* $XFree86: xc/lib/X11/XlcPubI.h,v 3.15 2004/02/11 00:30:44 torrey Exp $ */ #ifndef _XLCPUBLICI_H_ #define _XLCPUBLICI_H_ @@ -234,6 +234,12 @@ _Xsetlocale( int category, _Xconst char *name); #else +#ifdef __DARWIN__ +extern char * +_Xsetlocale( + int category, + _Xconst char *name); +#endif extern char *_XlcMapOSLocaleName( char *osname, char *siname); |