From 2b47445234bd44b1382cc434c408a390eb4aa07e Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Thu, 5 Jan 2006 10:49:13 +0000 Subject: squash compiler warning on Mac OSX 10.3 --- Modules/getpath.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Modules/getpath.c b/Modules/getpath.c index 1ab94c6..3264e24 100644 --- a/Modules/getpath.c +++ b/Modules/getpath.c @@ -381,7 +381,11 @@ calculate_path(void) NSModule pythonModule; #endif #ifdef __APPLE__ +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 uint32_t nsexeclength = MAXPATHLEN; +#else + unsigned long nsexeclength = MAXPATHLEN; +#endif #endif /* If there is no slash in the argv0 path, then we have to -- cgit v0.12