aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2007-09-05 09:06:38 +0800
committerCheng-Lung Sung <clsung@FreeBSD.org>2007-09-05 09:06:38 +0800
commit60d55604b2af617e4dfae7bde10bc2ac1c5fde78 (patch)
tree0d205d2888370d29db447a346840e48d771f4a9b /devel
parent881e135276b020ec29eb1c1a22e884356832e6a2 (diff)
downloadfreebsd-ports-gnome-60d55604b2af617e4dfae7bde10bc2ac1c5fde78.tar.gz
freebsd-ports-gnome-60d55604b2af617e4dfae7bde10bc2ac1c5fde78.tar.zst
freebsd-ports-gnome-60d55604b2af617e4dfae7bde10bc2ac1c5fde78.zip
- fixes the lvalue error when using gcc4
PR: ports/114903 Submitted by: maintainer (Erik Greenwald)
Diffstat (limited to 'devel')
-rw-r--r--devel/ruby-rudl/files/patch-flxplay.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/ruby-rudl/files/patch-flxplay.c b/devel/ruby-rudl/files/patch-flxplay.c
new file mode 100644
index 000000000000..d0773dff973b
--- /dev/null
+++ b/devel/ruby-rudl/files/patch-flxplay.c
@@ -0,0 +1,13 @@
+--- flxplay.c.orig Wed Jul 25 11:40:05 2007
++++ flxplay.c Wed Jul 25 11:40:27 2007
+@@ -42,8 +42,8 @@
+ int lastFrameTicks;
+ } FLC;
+
+-#define ReadU16(tmp1, tmp2) (Uint16)*(tmp1) = ((Uint8)*(tmp2+1)<<8)+(Uint8)*(tmp2);
+-#define ReadU32(tmp1, tmp2) (Uint32)*(tmp1) = (((((((Uint8)*(tmp2+3)<<8)+((Uint8)*(tmp2+2)))<<8)+((Uint8)*(tmp2+1)))<<8)+(Uint8)*(tmp2));
++#define ReadU16(tmp1, tmp2) *(Uint16 *)(tmp1) = ((Uint8)*(tmp2+1)<<8)+(Uint8)*(tmp2);
++#define ReadU32(tmp1, tmp2) *(Uint32 *)(tmp1) = (((((((Uint8)*(tmp2+3)<<8)+((Uint8)*(tmp2+2)))<<8)+((Uint8)*(tmp2+1)))<<8)+(Uint8)*(tmp2));
+
+
+