Commits

Ronald Oussoren committed 740b0eb

Merged revisions 2559 via svnmerge from
https://svn.red-bean.com/pyobjc/trunk/pyobjc

........
r2559 | ronaldoussoren | 2010-08-10 11:38:28 +0200 (Tue, 10 Aug 2010) | 2 lines

Tweak sources to ensure the manual bindings can be compiled on a 10.5 system.
........

Comments (0)

Files changed (1)

pyobjc-framework-CFNetwork/Modules/_manual.m

 }
 
 
-#if PyObjC_BUILD_RELEASE >= 1005
+#if PyObjC_BUILD_RELEASE >= 1006
+  /* This function is available on 10.5 or later, but the prototype isn't in the headers on 10.5 */
 static PyObject*
 m_CFNetworkExecuteProxyAutoConfigurationScript(PyObject* mod __attribute__((__unused__)),
 		PyObject* args)
 
 
 static PyMethodDef mod_methods[] = {
-#if PyObjC_BUILD_RELEASE >= 1005
+#if PyObjC_BUILD_RELEASE >= 1006
 	{
 		"CFNetworkExecuteProxyAutoConfigurationScript",
 		(PyCFunction)m_CFNetworkExecuteProxyAutoConfigurationScript,
 		METH_VARARGS,
 		NULL
 	},
+#endif /* OSX >= 10.5 */
+#if PyObjC_BUILD_RELEASE >= 1005
 	{
 		"CFNetworkExecuteProxyAutoConfigurationURL",
 		(PyCFunction)m_CFNetworkExecuteProxyAutoConfigurationURL,
 		PyObjC_INITERROR();
 	}
 
-#if PyObjC_BUILD_RELEASE >= 1005
+#if PyObjC_BUILD_RELEASE >= 1006
 	if (CFNetworkExecuteProxyAutoConfigurationScript == NULL) {
 		if (PyDict_DelItemString(m, "CFNetworkExecuteProxyAutoConfigurationScript") < 0) {
 			PyObjC_INITERROR();
 		}
 	}
+#endif
+#if PyObjC_BUILD_RELEASE >= 1005
 	if (CFNetworkExecuteProxyAutoConfigurationURL == NULL) {
 		if (PyDict_DelItemString(m, "CFNetworkExecuteProxyAutoConfigurationURL") < 0) {
 			PyObjC_INITERROR();
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.