summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2009-10-13 19:15:51 -0500
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-10-14 13:57:59 -0700
commit5d3d817a42ddcc8d0c6efd33efd1442fe14f5c6b (patch)
treeac5c588f5437bf76c089da4f5ab0854dcdac57ca
parent2c8b3a877a713bb66a6316a7051b43c46af6e1a0 (diff)
Provide _Xsetlocale compat wrappers on Cygwin
Previous versions of Cygwin did not have proper locale support, so Cygwin/X defined X_LOCALE, using _Xsetlocale instead. Cygwin 1.7 has added locale support, but we can't remove the _Xsetlocale entry point without breaking ABI. Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
-rw-r--r--src/SetLocale.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SetLocale.c b/src/SetLocale.c
index 01557772..a19baa92 100644
--- a/src/SetLocale.c
+++ b/src/SetLocale.c
@@ -121,7 +121,7 @@ _Xsetlocale(
#else /* X_LOCALE */
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__CYGWIN__)
char *
_Xsetlocale(
int category,
@@ -130,7 +130,7 @@ _Xsetlocale(
{
return setlocale(category, name);
}
-#endif /* __APPLE__ */
+#endif /* __APPLE__ || __CYGWIN__ */
/*
* _XlcMapOSLocaleName is an implementation dependent routine that derives