Fix detection of g++ in src.pro

Fix ftbfs on windows

git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@291 b624d157-de02-0410-bad0-e51aec6abb33
master
sniperbeamer 16 years ago
parent 9ce0432cff
commit db8c33e526
  1. 4
      src/Kdb3Database.cpp
  2. 1
      src/lib/tools.cpp
  3. 2
      src/src.pro

@ -1432,8 +1432,7 @@ bool Kdb3Database::save(){
aes.key256(FinalKey);
aes.cbc_encrypt((unsigned char*)buffer+DB_HEADER_SIZE,(unsigned char*)buffer+DB_HEADER_SIZE,EncryptedPartSize,(unsigned char*)EncryptionIV);
}
else{
if(Algorithm == Twofish_Cipher){
else{ // Algorithm == Twofish_Cipher
CTwofish twofish;
if(twofish.init(FinalKey, 32, EncryptionIV) == false){
UNEXP_ERROR
@ -1443,7 +1442,6 @@ bool Kdb3Database::save(){
EncryptedPartSize = (unsigned long)twofish.padEncrypt((quint8*)buffer+DB_HEADER_SIZE,
pos - DB_HEADER_SIZE,(quint8*)buffer+DB_HEADER_SIZE);
}
}
if((EncryptedPartSize > (0xFFFFFFE - 202)) || (!EncryptedPartSize && Groups.size())){
UNEXP_ERROR
delete [] buffer;

@ -26,6 +26,7 @@
#include <sys/mman.h>
#include <unistd.h>
#elif defined(Q_WS_WIN)
#include <QLibrary>
#include <windows.h>
#include <io.h>
#endif

@ -2,7 +2,7 @@
CONFIG = qt uic resources thread stl warn_on
QT += xml
contains(QMAKE_CXX, g++) : QMAKE_CXXFLAGS_WARN_ON += -Wno-sign-compare
*-g++ : QMAKE_CXXFLAGS_WARN_ON += -Wno-sign-compare
DEPENDPATH += crypto dialogs export forms import lib translations res
INCLUDEPATH += . lib crypto plugins/interfaces export import dialogs