Py_GetArgcArgv() doesn't exist on win32 platforms. Which isn't so bad,
since neither does the 'ps' command, really.
Reported by Aneurin Price.
Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
static int istty = 0;
+#ifdef __WIN32__
+
+// There's no 'ps' on win32 anyway, and Py_GetArgcArgv() isn't available.
+static void unpythonize_argv(void) { }
+
+#else // not __WIN32__
+
// For some reason this isn't declared in Python.h
extern void Py_GetArgcArgv(int *argc, char ***argv);
}
}
+#endif // not __WIN32__
+
static PyObject *selftest(PyObject *self, PyObject *args)
{