Patch #632973: Implement _getdefaultlocale for OS X.
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 @@
#include <windows.h>
#endif
-#ifdef macintosh
+#if __APPLE__
#include "macglue.h"
#endif
@@ -400,7 +400,7 @@
}
#endif
-#if defined(macintosh)
+#if defined(__APPLE__)
static PyObject*
PyLocale_getdefaultlocale(PyObject* self)
{
@@ -627,7 +627,7 @@
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