Author: randy
Date: 2007-04-10 09:09:49 -0600 (Tue, 10 Apr 2007)
New Revision: 1794
Added:
trunk/lcms/lcms-1.16-swig_fixes-1.patch
Log:
Added a little cms patch to fix a SWIG wrapper to work with newer GCCs
Added: trunk/lcms/lcms-1.16-swig_fixes-1.patch
===================================================================
--- trunk/lcms/lcms-1.16-swig_fixes-1.patch (rev 0)
+++ trunk/lcms/lcms-1.16-swig_fixes-1.patch 2007-04-10 15:09:49 UTC (rev
1794)
@@ -0,0 +1,33 @@
+Submitted By: Randy McMurchy <randy_at_linuxfromscratch_dot_org>
+Date: 2007-04-10
+Initial Package Version: 1.16
+Upstream Status: Unknown
+Origin: Randy McMurchy
+Description: Fixes a SWIG wrapper to work with newer GCCs
+
+
+--- lcms-1.16-orig/python/lcms_wrap.cxx 2006-12-13 11:22:44.000000000
+0000
++++ lcms-1.16/python/lcms_wrap.cxx 2007-04-10 14:08:00.000000000 +0000
+@@ -2048,7 +2048,7 @@
+ void *vptr = 0;
+
+ /* here we get the method pointer for callbacks */
+- char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
++ const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
+ const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
+ if (desc) {
+ desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
+@@ -33904,11 +33904,11 @@
+ swig_type_info **types_initial) {
+ size_t i;
+ for (i = 0; methods[i].ml_name; ++i) {
+- char *c = methods[i].ml_doc;
++ const char *c = methods[i].ml_doc;
+ if (c && (c = strstr(c, "swig_ptr: "))) {
+ int j;
+ swig_const_info *ci = 0;
+- char *name = c + 10;
++ const char *name = c + 10;
+ for (j = 0; const_table[j].type; ++j) {
+ if (strncmp(const_table[j].name, name,
+ strlen(const_table[j].name)) == 0) {
--
http://linuxfromscratch.org/mailman/listinfo/patches
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page