]> granicus.if.org Git - python/commitdiff
squash compiler warning on Mac OSX 10.3
authorSkip Montanaro <skip@pobox.com>
Thu, 5 Jan 2006 10:49:13 +0000 (10:49 +0000)
committerSkip Montanaro <skip@pobox.com>
Thu, 5 Jan 2006 10:49:13 +0000 (10:49 +0000)
Modules/getpath.c

index 1ab94c6448e59ba30cc09175242219040e68e23e..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