aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/dia
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-07-19 12:40:13 +0800
committermarcus <marcus@FreeBSD.org>2003-07-19 12:40:13 +0800
commitdc3bba6ed394eaa00fb2849f21366c0bacf5ff47 (patch)
treea1a50c7891edf7d29f91dc1d77464920a671b053 /graphics/dia
parent967b521b4e67266d9371a1886672b77c4f3a739c (diff)
downloadfreebsd-ports-gnome-dc3bba6ed394eaa00fb2849f21366c0bacf5ff47.tar.gz
freebsd-ports-gnome-dc3bba6ed394eaa00fb2849f21366c0bacf5ff47.tar.zst
freebsd-ports-gnome-dc3bba6ed394eaa00fb2849f21366c0bacf5ff47.zip
Fix build with GCC 3.3.1.
Submitted by: Jeremy Messenger <mezz7@cox.net> (based on)
Diffstat (limited to 'graphics/dia')
-rw-r--r--graphics/dia/files/patch-plug-ins_python_pydia-geometry.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/dia/files/patch-plug-ins_python_pydia-geometry.c b/graphics/dia/files/patch-plug-ins_python_pydia-geometry.c
new file mode 100644
index 000000000000..be48c3cf7ac9
--- /dev/null
+++ b/graphics/dia/files/patch-plug-ins_python_pydia-geometry.c
@@ -0,0 +1,11 @@
+--- plug-ins/python/pydia-geometry.c.orig Sat Jul 19 00:22:20 2003
++++ plug-ins/python/pydia-geometry.c Sat Jul 19 00:22:34 2003
+@@ -211,7 +211,7 @@
+ {
+ #define I_OR_F(v) \
+ (self->is_int ? \
+- PyInt_FromLong(self->r.ri.##v) : PyFloat_FromDouble(self->r.rf.##v))
++ PyInt_FromLong(self->r.ri./**/v) : PyFloat_FromDouble(self->r.rf./**/v))
+
+ if (!strcmp(attr, "__members__"))
+ return Py_BuildValue("[ssss]", "top", "left", "right", "bottom" );