]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixed changed UPP routines names. The module now compiles and loads.
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 22 May 2001 21:48:40 +0000 (21:48 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 22 May 2001 21:48:40 +0000 (21:48 +0000)
Mac/Modules/Nav.c

index 934dc878e0b940b37bd86f4d36842e0bf270b6ce..ff7724e5306d4254bbc38f4326e474d395ce0587 100644 (file)
@@ -32,7 +32,11 @@ PERFORMANCE OF THIS SOFTWARE.
 #include "Python.h"
 #include "macglue.h"
 #include "pymactoolbox.h"
+#ifdef WITHOUT_FRAMEWORKS
 #include <Navigation.h>
+#else
+#include <Carbon/Carbon.h>
+#endif
 
 static PyObject *ErrorObject;
 
@@ -965,9 +969,9 @@ initNav()
        /* XXXX Add constants here */
        
        /* Set UPPs */
-       my_eventProcUPP = NewNavEventProc(my_eventProc);
-       my_previewProcUPP = NewNavPreviewProc(my_previewProc);
-       my_filterProcUPP = NewNavObjectFilterProc(my_filterProc);
+       my_eventProcUPP = NewNavEventUPP(my_eventProc);
+       my_previewProcUPP = NewNavPreviewUPP(my_previewProc);
+       my_filterProcUPP = NewNavObjectFilterUPP(my_filterProc);
        
 }