some changes for compalibility with Visual C++ 2005 compiler

git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@48 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
tariq
2006-02-17 17:58:28 +00:00
parent d68659e395
commit 68f1d12d74
5 changed files with 10 additions and 10 deletions

View File

@@ -16,6 +16,7 @@
#define BLOWFISH_H
#include "global.h"
#include <qglobal.h>
//#include <stdint.h>
#include <string>
using std::string;
@@ -24,7 +25,10 @@ using std::string;
#define BLOWFISH_ROUNDS 16
#define CIPHER_ALGO_BLOWFISH 4 /* blowfish 128 bit key */
typedef uint8_t byte;
#define uint8_t Q_UINT8
#define uint16_t Q_UINT16
#define uint32_t Q_UINT32
#define byte Q_UINT8
/** blowfish encryption algorithm.
* Derived from libgcrypt-1.1.12

View File

@@ -26,11 +26,7 @@
// Rotate x bits to the left
#ifndef ROL32
#ifdef _MSC_VER
#define ROL32(_val32, _nBits) _rotl(_val32, _nBits)
#else
#define ROL32(_val32, _nBits) (((_val32)<<(_nBits))|((_val32)>>(32-(_nBits))))
#endif
#define ROL32(_val32, _nBits) (((_val32)<<(_nBits))|((_val32)>>(32-(_nBits))))
#endif
#ifdef KEEPASS_LITTLE_ENDIAN