]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport: squash compiler warning on Mac OSX 10.3
authorSkip Montanaro <skip@pobox.com>
Thu, 5 Jan 2006 10:51:18 +0000 (10:51 +0000)
committerSkip Montanaro <skip@pobox.com>
Thu, 5 Jan 2006 10:51:18 +0000 (10:51 +0000)
Modules/getpath.c

index 418c683ce663614c02e4ed8c63d8266e7d8d7bbc..3264e246a41af6bed459fb52d3a6c61834657df1 100644 (file)
@@ -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