Fix build when the 'uint' typedef is already defined.

Using uint in those structs gave me the following error:

  /home/rakuco/kde4/src/kdesupport/taglib/taglib/riff/rifffile.cpp:38:
error: reference to 'uint' is ambiguous
  /usr/include/sys/types.h:56: error: candidates are: typedef unsigned
int uint

Is it really necessary to have those typedefs in taglib.h? It'd be
nice to at least check if they are not being redefined.

CCMAIL: lalinsky@gmail.com



git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1223282 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Raphael Kubo da Costa 2011-03-02 03:05:28 +00:00
parent 10fff6d797
commit eee860f9c6

View File

@ -35,8 +35,8 @@ using namespace TagLib;
struct Chunk
{
ByteVector name;
uint offset;
uint size;
TagLib::uint offset;
TagLib::uint size;
char padding;
};
@ -51,7 +51,7 @@ public:
}
Endianness endianness;
ByteVector type;
uint size;
TagLib::uint size;
ByteVector format;
std::vector<Chunk> chunks;