<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,6 +6,7 @@
 
 #import &lt;ApplicationServices/ApplicationServices.h&gt;
 
+#ifndef OS_TIGER
 static PyObject*
 m_CGFontCopyTableTags(PyObject* self __attribute__((__unused__)), 
 		PyObject* args)
@@ -123,6 +124,7 @@ m_CGWindowListCreate(PyObject* self __attribute__((__unused__)),
 }
 
 
+
 static CFArrayRef
 createWindowList(PyObject* items)
 {
@@ -248,6 +250,7 @@ m_CGWindowListCreateImageFromArray(PyObject* self __attribute__((__unused__)),
 	CFRelease(image);
 	return rv;
 }
+#endif /* !OS_TIGER */
 
 static PyObject*
 m_CGBitmapContextCreate(PyObject* self __attribute__((__unused__)), 
@@ -333,6 +336,7 @@ m_CGBitmapContextCreate(PyObject* self __attribute__((__unused__)),
 
 
 static PyMethodDef m_methods[] = {
+#ifndef OS_TIGER
 	{
 		&quot;CGFontCopyTableTags&quot;,
 		(PyCFunction)m_CGFontCopyTableTags,
@@ -357,6 +361,7 @@ static PyMethodDef m_methods[] = {
 		METH_VARARGS,
 		NULL
 	},
+#endif /* !OS_TIGER */
 	{
 		&quot;CGBitmapContextCreate&quot;,
 		(PyCFunction)m_CGBitmapContextCreate,</diff>
      <filename>pyobjc/pyobjc-framework-Quartz/Modules/_coregraphics.m</filename>
    </modified>
    <modified>
      <diff>@@ -19,6 +19,41 @@
 #include &quot;Python.h&quot;
 #include &lt;objc/objc.h&gt;
 
+#import &lt;Foundation/NSObjCRuntime.h&gt;
+
+#ifndef CGFLOAT_DEFINED
+
+#ifdef __LP64__
+# error &quot;Huh? 64-bit but no CFFloat available???&quot;
+#endif
+
+typedef float CGFloat;
+#define CGFLOAT_MIN FLT_MIN
+#define CGFLOAT_MAX FLT_MAX
+#define CGFLOAT_IS_DOUBLE 0
+#define CGFLOAT_DEFINED
+
+#endif /* CGFLOAT_DEFINED */
+
+
+#ifndef NSINTEGER_DEFINED
+
+#ifdef __LP64__
+# error &quot;Huh? 64-bit but no NSINTEGER available???&quot;
+#endif
+
+typedef int NSInteger;
+typedef unsigned int NSUInteger;
+
+#define NSIntegerMax    LONG_MAX
+#define NSIntegerMin    LONG_MIN
+#define NSUIntegerMax   ULONG_MAX
+
+#define NSINTEGER_DEFINED
+
+#endif
+
+
 #ifndef PyObjC_COMPAT_H
 #if (PY_VERSION_HEX &lt; 0x02050000)
 typedef int Py_ssize_t;
@@ -32,7 +67,6 @@ typedef int Py_ssize_t;
 #endif
 #endif
 
-
 #import &lt;Foundation/NSException.h&gt;
 
 struct PyObjC_WeakLink {
@@ -42,6 +76,7 @@ struct PyObjC_WeakLink {
 
 
 /* threading support */
+#ifdef NO_OBJC2_RUNTIME
 #define PyObjC_DURING \
 		Py_BEGIN_ALLOW_THREADS \
 		NS_DURING
@@ -51,6 +86,20 @@ struct PyObjC_WeakLink {
 #define PyObjC_ENDHANDLER \
 		NS_ENDHANDLER \
 		Py_END_ALLOW_THREADS
+#else
+
+#define	PyObjC_DURING \
+		Py_BEGIN_ALLOW_THREADS \
+		@try {
+
+#define PyObjC_HANDLER } @catch(NSObject* _localException) { \
+		NSException* localException __attribute__((__unused__))= (NSException*)_localException;
+
+#define PyObjC_ENDHANDLER \
+		} \
+		Py_END_ALLOW_THREADS
+
+#endif
 
 #define PyObjC_BEGIN_WITH_GIL \
 	{ \</diff>
      <filename>pyobjc/pyobjc-framework-Quartz/Modules/pyobjc-api.h</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,24 @@
 ''' 
-Wrappers for frameworks 'CoreGraphics', 'ImageIO', 'QuartzCore', 
-'QuartzFilters', 'ImageKit', 'PDFKit' and 'CoreVideo'.
+Wrappers for the &quot;Quartz&quot; related frameworks on MacOSX. These frameworks
+provide a number of graphics related API's.
+
+The frameworks wrapped by this package are:
+
+   * CoreGraphics - 2D Graphics, based on the PDF model
+
+   * ImageIO - Reading and writing images
+
+   * QuartzComposer - Working with &quot;Quartz Composer&quot; compositions
+
+   * QuartzCore  - Image processing and video image manipulation
+
+   * QuarzFilters - Image effects
+
+   * ImageKit - iPhoto-like views
+
+   * PDFKit - Working with PDF files
+
+   * CoreVideo - Managing digital video
 
 All frameworks can be accessed by importing the 'Quartz' module.
 
@@ -32,6 +50,10 @@ if int(os.uname()[2].split('.')[0]) &gt; 8:
 else:
     CV_CFLAGS=[]
 
+if int(os.uname()[2].split('.')[0]) &gt; 8:
+    CFLAGS = []
+else:
+    CFLAGS=[ &quot;-DNO_OBJC2_RUNTIME&quot;, &quot;-DOS_TIGER&quot; ]
 
 setup(
     name='pyobjc-framework-Quartz',
@@ -44,39 +66,38 @@ setup(
     platforms = [ &quot;MacOS X&quot; ],
     packages = [ &quot;Quartz&quot;, &quot;Quartz.CoreGraphics&quot;, &quot;Quartz.ImageIO&quot;, &quot;Quartz.QuartzCore&quot;, &quot;Quartz.CoreVideo&quot;, &quot;Quartz.QuartzComposer&quot;, &quot;Quartz.ImageKit&quot;, &quot;Quartz.PDFKit&quot;, &quot;Quartz.QuartzFilters&quot; ],
     package_dir = { '': 'Lib' },
-    setup_requires = [ 
-    ],
     install_requires = [ 
-        'pyobjc-core&gt;=2.2b1',
-        'pyobjc-framework-Cocoa&gt;=2.2b1',
+        'pyobjc-core&gt;=2.2b2',
+        'pyobjc-framework-Cocoa&gt;=2.2b2',
     ],
-    dependency_links = [],
     package_data = { 
         '': ['*.bridgesupport'] 
     },
     test_suite='PyObjCTest',
     cmdclass = extra_cmdclass,
     options = extra_options('Quartz'),
-
-    # The package is actually zip-safe, but py2app isn't fully zip-aware yet.
-    zip_safe = False,
-
+    zip_safe = True,
     ext_modules = [
         # CoreVideo
         Extension('Quartz.CoreVideo._CVPixelBuffer',
             [ 'Modules/_CVPixelBuffer.m' ],
-            extra_compile_args=CV_CFLAGS),
+            extra_compile_args=CV_CFLAGS + CFLAGS),
 
         # CoreGraphics
         Extension('Quartz.CoreGraphics._inlines',
-            [ 'Modules/_CoreGraphics_inlines.m' ]),
+            [ 'Modules/_CoreGraphics_inlines.m' ],
+            extra_compile_args=CFLAGS),
         Extension('Quartz.CoreGraphics._callbacks',
-            [ 'Modules/_callbacks.m' ]),
+            [ 'Modules/_callbacks.m' ],
+            extra_compile_args=CFLAGS),
         Extension('Quartz.CoreGraphics._doubleindirect',
-            [ 'Modules/_doubleindirect.m' ]),
+            [ 'Modules/_doubleindirect.m' ],
+            extra_compile_args=CFLAGS),
         Extension('Quartz.CoreGraphics._sortandmap',
-            [ 'Modules/_sortandmap.m' ]),
+            [ 'Modules/_sortandmap.m' ],
+            extra_compile_args=CFLAGS),
         Extension('Quartz.CoreGraphics._coregraphics',
-            [ 'Modules/_coregraphics.m' ]),
+            [ 'Modules/_coregraphics.m' ],
+            extra_compile_args=CFLAGS),
     ],
 )</diff>
      <filename>pyobjc/pyobjc-framework-Quartz/setup.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a11f1c450e1ec1a467af20ce211d0e3ca49bb080</id>
    </parent>
  </parents>
  <author>
    <name>ronaldoussoren</name>
    <email>ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25</email>
  </author>
  <url>http://github.com/orestis/pyobjc/commit/6a0c66af00fa0d3ce5af26a77ea19e86fa1edcf5</url>
  <id>6a0c66af00fa0d3ce5af26a77ea19e86fa1edcf5</id>
  <committed-date>2009-05-14T01:35:04-07:00</committed-date>
  <authored-date>2009-05-14T01:35:04-07:00</authored-date>
  <message>Enable compilation on OSX 10.4. Not tested beyond that.


git-svn-id: http://svn.red-bean.com/pyobjc/trunk@2217 f55f28a5-9edb-0310-a011-a803cfcd5d25</message>
  <tree>36bb25fe65326cd417030be8055b71d4afc203d6</tree>
  <committer>
    <name>ronaldoussoren</name>
    <email>ronaldoussoren@f55f28a5-9edb-0310-a011-a803cfcd5d25</email>
  </committer>
</commit>
