[PATCH] Fix byteswap macros compilation with
kernel-headers-2.6.28
Sandor Bodo-Merle
sbodomerle at gmail.com
Mon Feb 23 11:45:28 MST 2009
Compiling revision 930522:
In file included from /usr/include/linux/byteorder/little_endian.h:13,
from /usr/include/asm/byteorder.h:79,
from /usr/include/linux/cdrom.h:14,
from
/home/SRC/git-tellico/src/translators/freedb_util.cpp:49:
/usr/include/linux/byteorder/swabb.h: In function '__u32 __fswahw32(__u32)':
/usr/include/linux/byteorder/swabb.h:94: error: ISO C++ forbids
braced-groups within expressions
/usr/include/linux/byteorder/swabb.h: In function '__u32
__swahw32p(__u32*)':
/usr/include/linux/byteorder/swabb.h:99: error: ISO C++ forbids
braced-groups within expressions
/usr/include/linux/byteorder/swabb.h: In function '__u32 __fswahb32(__u32)':
/usr/include/linux/byteorder/swabb.h:109: error: ISO C++ forbids
braced-groups within expressions
/usr/include/linux/byteorder/swabb.h: In function '__u32
__swahb32p(__u32*)':
/usr/include/linux/byteorder/swabb.h:114: error: ISO C++ forbids
braced-groups within expressions
/home/SRC/git-tellico/src/translators/freedb_util.cpp: In static member
function 'static QList<unsigned int>
Tellico::Import::FreeDBImporter::offsetList(const QByteArray&,
QList<unsigned int>&)':
This is without _LINUX_BYTEORDER_SWABB_H defined.
Having defined it makes it compile.
Sanyi
On Mon, Feb 23, 2009 at 3:51 PM, Robby Stephenson <robby at periapsis.org>wrote:
> On Friday 20 February 2009, Sandor Bodo-Merle wrote:
> > Well i did a fresh checkout now the source is on KDE svn server.
> > Compiling it i got the errors about /usr/include/linux/byteorder/swabb.h
> > I had to admit that i googled for the solution id did not looked at it
> > too deep as this one liner fixed the compile.
>
> Did the freedb check still work with your patch?
>
> Robby
>
> _______________________________________________
> tellico-users mailing list
> tellico-users at forge.novell.com
> http://forge.novell.com/mailman/listinfo/tellico-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://forge.novell.com/pipermail/tellico-users/attachments/20090223/4affe060/attachment-0001.html
More information about the tellico-users
mailing list