summaryrefslogtreecommitdiffstats
path: root/Mac/Modules
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-05-12 22:46:35 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-05-12 22:46:35 (GMT)
commit0194ad5c7d2a0ffe473b87933768cb509417ff59 (patch)
tree8d0cec5b98d59c0931d2e54550fb4d9b1af17ff3 /Mac/Modules
parent6e68a7e74f63f2aeda22e80e3fd9abdf3ada0f73 (diff)
downloadcpython-0194ad5c7d2a0ffe473b87933768cb509417ff59.zip
cpython-0194ad5c7d2a0ffe473b87933768cb509417ff59.tar.gz
cpython-0194ad5c7d2a0ffe473b87933768cb509417ff59.tar.bz2
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).
Diffstat (limited to 'Mac/Modules')
-rw-r--r--Mac/Modules/gestaltmodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mac/Modules/gestaltmodule.c b/Mac/Modules/gestaltmodule.c
index 3cba45b..15a2c89 100644
--- a/Mac/Modules/gestaltmodule.c
+++ b/Mac/Modules/gestaltmodule.c
@@ -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)