diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-23 21:03:36 +0000 |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-23 21:03:36 +0000 |
commit | 0a116f3a2901b040faa356ffc3dbb91a7f00d215 (patch) | |
tree | e40ba85845e717a5314e54c0406a90c1b585111d /Modules | |
parent | 446f32367b4900b8cbbeb155c5553d8277fa56cf (diff) | |
download | cpython-git-0a116f3a2901b040faa356ffc3dbb91a7f00d215.tar.gz |
Squashed compiler warnings by adding casts, making sure prototypes are in
scope and looking at types.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/getpath.c | 2 | ||||
-rw-r--r-- | Modules/main.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Modules/getpath.c b/Modules/getpath.c index ee972713f4..54b57c7847 100644 --- a/Modules/getpath.c +++ b/Modules/getpath.c @@ -421,7 +421,7 @@ calculate_path(void) */ pythonModule = NSModuleForSymbol(NSLookupAndBindSymbol("_Py_Initialize")); /* Use dylib functions to find out where the framework was loaded from */ - buf = NSLibraryNameForModule(pythonModule); + buf = (char *)NSLibraryNameForModule(pythonModule); if (buf != NULL) { /* We're in a framework. */ /* See if we might be in the build directory. The framework in the diff --git a/Modules/main.c b/Modules/main.c index 2005f0bb87..ca382c69d3 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -13,6 +13,10 @@ extern PyObject* pyvms_gr_empty_string; #include <fcntl.h> #endif +#if defined(WITH_NEXT_FRAMEWORK) +#include "pymactoolbox.h" +#endif + #if (defined(PYOS_OS2) && !defined(PYCC_GCC)) || defined(MS_WINDOWS) #define PYTHONHOMEHELP "<prefix>\\lib" #else |