diff --git a/libretroshare/src/dbase/fimonitor.cc b/libretroshare/src/dbase/fimonitor.cc index d0ca9c953..d9b2477fb 100644 --- a/libretroshare/src/dbase/fimonitor.cc +++ b/libretroshare/src/dbase/fimonitor.cc @@ -21,6 +21,7 @@ * */ +#include #include "dbase/fimonitor.h" #include "util/rsdir.h" #include "serialiser/rsserviceids.h" diff --git a/libretroshare/src/libretroshare.pro b/libretroshare/src/libretroshare.pro index 354e77adc..eea6ba5af 100644 --- a/libretroshare/src/libretroshare.pro +++ b/libretroshare/src/libretroshare.pro @@ -7,16 +7,14 @@ DEFINES *= MINIUPNPC_VERSION=13 DEFINES -= PQI_USE_XPGP DEFINES += RS_USE_PGPSSL -UPNPC_DIR = ../../../../miniupnpc-1.3 -GPG_ERROR_DIR = ../../../../libgpg-error-1.7 -GPGME_DIR = ../../../../gpgme-1.1.8 - profiling { QMAKE_CXXFLAGS -= -fomit-frame-pointer QMAKE_CXXFLAGS *= -pg -g -fno-omit-frame-pointer } +DEFINES -= PQI_USE_XPGP +DEFINES *= RS_USE_PGPSSL ################################# Linux ########################################## @@ -60,28 +58,38 @@ win32-x-g++ { QMAKE_CXXFLAGS *= -Wmissing-include-dirs QMAKE_CC = i586-mingw32msvc-g++ QMAKE_LIB = i586-mingw32msvc-ar + QMAKE_AR = i586-mingw32msvc-ar DEFINES *= STATICLIB WIN32 + SSL_DIR=../../../../openssl + UPNPC_DIR = ../../../../miniupnpc-1.3 + GPG_ERROR_DIR = ../../../../libgpg-error-1.7 + GPGME_DIR = ../../../../gpgme-1.1.8 + INCLUDEPATH *= /usr/i586-mingw32msvc/include ${HOME}/.wine/drive_c/pthreads/include/ } ################################# Windows ########################################## win32 { - QMAKE_CC = g++ - OBJECTS_DIR = temp/obj - MOC_DIR = temp/moc - DEFINES = WINDOWS_SYS WIN32 STATICLIB MINGW - DESTDIR = lib - - PTHREADS_DIR = ../../../../pthreads-w32-2-8-0-release - ZLIB_DIR = ../../../../zlib-1.2.3 - SSL_DIR = ../../../../OpenSSL - - INCLUDEPATH += . $${SSL_DIR}/include $${UPNPC_DIR} $${PTHREADS_DIR} $${ZLIB_DIR} + QMAKE_CC = g++ + OBJECTS_DIR = temp/obj + MOC_DIR = temp/moc + DEFINES = WINDOWS_SYS WIN32 STATICLIB MINGW + DESTDIR = lib + + UPNPC_DIR = ../../../../miniupnpc-1.3 + GPG_ERROR_DIR = ../../../../libgpg-error-1.7 + GPGME_DIR = ../../../../gpgme-1.1.8 + + PTHREADS_DIR = ../../../../pthreads-w32-2-8-0-release + ZLIB_DIR = ../../../../zlib-1.2.3 + SSL_DIR = ../../../../OpenSSL + + INCLUDEPATH += . $${SSL_DIR}/include $${UPNPC_DIR} $${PTHREADS_DIR} $${ZLIB_DIR} } ################################### COMMON stuff ################################## -INCLUDEPATH += . $${SSL_DIR}/include $${UPNPC_DIR} $${GPGME_DIR}/src $${GPG_ERROR_DIR}/src +INCLUDEPATH += . $${SSL_DIR} $${UPNPC_DIR} $${GPGME_DIR}/src $${GPG_ERROR_DIR}/src #DEPENDPATH += . \ # util \ diff --git a/libretroshare/src/turtle/p3turtle.cc b/libretroshare/src/turtle/p3turtle.cc index 2f4b3b25f..c6468db0f 100644 --- a/libretroshare/src/turtle/p3turtle.cc +++ b/libretroshare/src/turtle/p3turtle.cc @@ -1469,12 +1469,12 @@ bool p3turtle::performLocalHashSearch(const TurtleFileHash& hash,FileInfo& info) return rsFiles->FileDetails(hash, RS_FILE_HINTS_LOCAL | RS_FILE_HINTS_SPEC_ONLY, info); } -static std::string printNumber(uint num,bool hex=false) +static std::string printNumber(uint64_t num,bool hex=false) { if(hex) { char tmp[100] ; - sprintf(tmp,"0x%08x",num) ; + sprintf(tmp,"0x%08lx",num) ; return std::string(tmp) ; } else diff --git a/libretroshare/src/turtle/rsturtleitem.cc b/libretroshare/src/turtle/rsturtleitem.cc index 12e3e9ca4..446544607 100644 --- a/libretroshare/src/turtle/rsturtleitem.cc +++ b/libretroshare/src/turtle/rsturtleitem.cc @@ -35,7 +35,7 @@ uint32_t RsTurtleRegExpSearchRequestItem::serial_size() s += 4 ; // number of strings - for(uint i=0;i