summaryrefslogtreecommitdiffstats
path: root/Modules/_localemodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-11-26 09:05:36 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-11-26 09:05:36 (GMT)
commit52ea7e9244f673602a32beb4c0489bfdd59cb1d4 (patch)
tree0823ce987fa7a9e886814bbeb3cebb1122e27d73 /Modules/_localemodule.c
parent318b7b920d818f7da7040cbc5cc4696415eab7cc (diff)
downloadcpython-52ea7e9244f673602a32beb4c0489bfdd59cb1d4.zip
cpython-52ea7e9244f673602a32beb4c0489bfdd59cb1d4.tar.gz
cpython-52ea7e9244f673602a32beb4c0489bfdd59cb1d4.tar.bz2
Patch #632973: Implement _getdefaultlocale for OS X.
Diffstat (limited to 'Modules/_localemodule.c')
-rw-r--r--Modules/_localemodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c
index ab86fa4..4b654d5 100644
--- a/Modules/_localemodule.c
+++ b/Modules/_localemodule.c
@@ -30,7 +30,7 @@ This software comes with no warranty. Use at your own risk.
#include <windows.h>
#endif
-#ifdef macintosh
+#if __APPLE__
#include "macglue.h"
#endif
@@ -400,7 +400,7 @@ PyLocale_getdefaultlocale(PyObject* self)
}
#endif
-#if defined(macintosh)
+#if defined(__APPLE__)
static PyObject*
PyLocale_getdefaultlocale(PyObject* self)
{
@@ -627,7 +627,7 @@ static struct PyMethodDef PyLocale_Methods[] = {
METH_VARARGS, strcoll__doc__},
{"strxfrm", (PyCFunction) PyLocale_strxfrm,
METH_VARARGS, strxfrm__doc__},
-#if defined(MS_WINDOWS) || defined(macintosh)
+#if defined(MS_WINDOWS) || defined(__APPLE__)
{"_getdefaultlocale", (PyCFunction) PyLocale_getdefaultlocale, METH_NOARGS},
#endif
#ifdef HAVE_LANGINFO_H