From: Skip Montanaro Date: Thu, 5 Jan 2006 10:49:13 +0000 (+0000) Subject: squash compiler warning on Mac OSX 10.3 X-Git-Tag: v2.5a0~892 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b47445234bd44b1382cc434c408a390eb4aa07e;p=python squash compiler warning on Mac OSX 10.3 --- diff --git a/Modules/getpath.c b/Modules/getpath.c index 1ab94c6448..3264e246a4 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