diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2009-10-24 11:57:58 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2009-10-24 11:57:58 +0000 |
commit | c2c0c3097d0f5ef8c9279e7e8895b5ac9be78584 (patch) | |
tree | 5bb07b6363ed8b7febf5308f692763abf4713c2f /media-libs/lib3ds/files | |
parent | ppc stable #284544 (diff) | |
download | historical-c2c0c3097d0f5ef8c9279e7e8895b5ac9be78584.tar.gz historical-c2c0c3097d0f5ef8c9279e7e8895b5ac9be78584.tar.bz2 historical-c2c0c3097d0f5ef8c9279e7e8895b5ac9be78584.zip |
old
Package-Manager: portage-2.2_rc46/cvs/Linux x86_64
Diffstat (limited to 'media-libs/lib3ds/files')
-rw-r--r-- | media-libs/lib3ds/files/lib3ds-1.2.0-fix-aliasing.patch | 33 | ||||
-rw-r--r-- | media-libs/lib3ds/files/lib3ds-1.2.0-m4-underquoted.patch | 11 |
2 files changed, 0 insertions, 44 deletions
diff --git a/media-libs/lib3ds/files/lib3ds-1.2.0-fix-aliasing.patch b/media-libs/lib3ds/files/lib3ds-1.2.0-fix-aliasing.patch deleted file mode 100644 index 7196badd3a2a..000000000000 --- a/media-libs/lib3ds/files/lib3ds-1.2.0-fix-aliasing.patch +++ /dev/null @@ -1,33 +0,0 @@ -strict aliasing rules say this sort of casting is illegal - -http://bugs.gentoo.org/172421 - ---- lib3ds/io.c -+++ lib3ds/io.c -@@ -249,6 +249,7 @@ - { - Lib3dsByte b[4]; - Lib3dsDword d; -+ Lib3dsFloat ret; - - ASSERT(io); - lib3ds_io_read(io, b, 4); -@@ -256,7 +257,8 @@ - ((Lib3dsDword)b[2] << 16) | - ((Lib3dsDword)b[1] << 8) | - ((Lib3dsDword)b[0]); -- return(*((Lib3dsFloat*)&d)); -+ memcpy(&ret, &d, sizeof(ret)); -+ return ret; - } - - -@@ -462,7 +464,7 @@ - Lib3dsDword d; - - ASSERT(io); -- d=*((Lib3dsDword*)&l); -+ memcpy(&d, &l, sizeof(d)); - b[3]=(Lib3dsByte)(((Lib3dsDword)d & 0xFF000000) >> 24); - b[2]=(Lib3dsByte)(((Lib3dsDword)d & 0x00FF0000) >> 16); - b[1]=(Lib3dsByte)(((Lib3dsDword)d & 0x0000FF00) >> 8); diff --git a/media-libs/lib3ds/files/lib3ds-1.2.0-m4-underquoted.patch b/media-libs/lib3ds/files/lib3ds-1.2.0-m4-underquoted.patch deleted file mode 100644 index ee8c654f650d..000000000000 --- a/media-libs/lib3ds/files/lib3ds-1.2.0-m4-underquoted.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- lib3ds-1.2.0/lib3ds.m4 -+++ lib3ds-1.2.0/lib3ds.m4 -@@ -1,7 +1,7 @@ - dnl - dnl AM_PATH_LIB3DS([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) - dnl --AC_DEFUN(AM_PATH_LIB3DS, -+AC_DEFUN([AM_PATH_LIB3DS], - [ - - AC_ARG_WITH(lib3ds-prefix,[ --with-lib3ds-prefix=PFX Prefix where lib3ds is installed (optional)], |