scope and looking at types.
*/
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
#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
newModule = NSLinkModule(image, pathname, LINKOPTIONS);
if (newModule == NULL) {
int errNo;
- char *fileName, *moreErrorStr;
+ const char *fileName, *moreErrorStr;
NSLinkEditErrors c;
NSLinkEditError( &c, &errNo, &fileName, &moreErrorStr );
PyOS_snprintf(errBuf, 512, "Failure linking new module: %s: %s",
/* This leaks a an object. */
name = CFStringConvertEncodingToIANACharSetName(enc);
}
- return CFStringGetCStringPtr(name, 0);
+ return (char *)CFStringGetCStringPtr(name, 0);
#else
int font, script, lang;
font = 0;