Got the first MacPython module working under MacOSX/MachO (gestalt). Main changes

are including Carbon/Carbon.h in stead of the old headers (unless WITHOUT_FRAMEWORKS
is defined, as it will be for classic MacPython) and selectively disabling all the
stuff that is unneeded in a unix-Python (event handling, etc).
This commit is contained in:
Jack Jansen 2001-05-12 22:46:35 +00:00
parent 6e68a7e74f
commit 0194ad5c7d
3 changed files with 55 additions and 54 deletions

View file

@ -27,8 +27,12 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "Python.h"
#include "macglue.h"
#ifdef WITHOUT_FRAMEWORKS
#include <Types.h>
#include <Gestalt.h>
#else
#include <Carbon/Carbon.h>
#endif
static PyObject *
gestalt_gestalt(self, args)