summaryrefslogtreecommitdiffstats
path: root/Mac/Python/macgetpath.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-07-11 21:16:03 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-07-11 21:16:03 (GMT)
commit9ae898b415ad0758dbe1e1cb43f48f60bf8dfab0 (patch)
treec12e44689277430502086274a8cb1ab103a8d8be /Mac/Python/macgetpath.c
parent5e80a7579918dca87a31725e379cb3ea79e2a7a5 (diff)
downloadcpython-9ae898b415ad0758dbe1e1cb43f48f60bf8dfab0.zip
cpython-9ae898b415ad0758dbe1e1cb43f48f60bf8dfab0.tar.gz
cpython-9ae898b415ad0758dbe1e1cb43f48f60bf8dfab0.tar.bz2
ANSIfication step 2: make sure all needed prototypes are available, and all needed
header files included.
Diffstat (limited to 'Mac/Python/macgetpath.c')
-rw-r--r--Mac/Python/macgetpath.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/Mac/Python/macgetpath.c b/Mac/Python/macgetpath.c
index bc957cc..c180d1f 100644
--- a/Mac/Python/macgetpath.c
+++ b/Mac/Python/macgetpath.c
@@ -33,6 +33,9 @@ PERFORMANCE OF THIS SOFTWARE.
#include "osdefs.h"
#include "macglue.h"
#include "pythonresources.h"
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
/* Return the initial python search path. This is called once from
@@ -58,6 +61,10 @@ PERFORMANCE OF THIS SOFTWARE.
#include <GUSI.h>
#endif
+#ifndef USE_BUILTIN_PATH
+staticforward char *PyMac_GetPythonPath();
+#endif
+
#define PYTHONPATH "\
:\n\
:Lib\n\
@@ -143,9 +150,6 @@ Py_GetPath()
char *p, *endp;
int newlen;
char *curwd;
-#ifndef USE_BUILTIN_PATH
- staticforward char *PyMac_GetPythonPath();
-#endif
if ( pythonpath ) return pythonpath;
#ifndef USE_BUILTIN_PATH
@@ -294,7 +298,7 @@ PyMac_GetPythonDir()
#ifndef USE_BUILTIN_PATH
char *
-PyMac_GetPythonPath()
+PyMac_GetPythonPath(void)
{
short oldrh, prefrh = -1;
char *rv;