From 5913872a77819fadfa52a6e4fc4ab0bb55726e53 Mon Sep 17 00:00:00 2001 From: drbob Date: Tue, 13 May 2008 16:56:27 +0000 Subject: [PATCH] Fixed cross-platform bugs. (1) std::map<> doesn't support .at() on OSX or Windows. (use [] or find()) (2) u_int32_t is invalid on windows. (use uint32_t ) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@553 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/serialiser/rsqblogitems.cc | 2 +- libretroshare/src/services/p3Qblog.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libretroshare/src/serialiser/rsqblogitems.cc b/libretroshare/src/serialiser/rsqblogitems.cc index e1e8f6e54..c6ce4fe7d 100644 --- a/libretroshare/src/serialiser/rsqblogitems.cc +++ b/libretroshare/src/serialiser/rsqblogitems.cc @@ -77,7 +77,7 @@ uint32_t RsQblogSerialiser::sizeItem(RsQblogItem *item) /*******************************************************************************/ -bool RsQblogSerialiser::serialiseItem(RsQblogItem* item, void* data, u_int32_t *size) +bool RsQblogSerialiser::serialiseItem(RsQblogItem* item, void* data, uint32_t *size) { uint32_t tlvsize = sizeItem(item); uint32_t offset = 0; diff --git a/libretroshare/src/services/p3Qblog.cc b/libretroshare/src/services/p3Qblog.cc index f876b80c0..04f319702 100644 --- a/libretroshare/src/services/p3Qblog.cc +++ b/libretroshare/src/services/p3Qblog.cc @@ -122,7 +122,7 @@ bool p3Qblog::getBlogs(std::map< std::string, std::multimap