SHA-2 code does not compile on FreeBSD
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>
Wed, 29 Feb 2012 00:01:01 +0000 (01:01 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 29 Feb 2012 23:09:57 +0000 (00:09 +0100)
commitf885a526acbb2d5fd15fe76478bf3faef1570aec
tree358d6a8b1ad798732a6a8aec809dd2183350312a
parent221fe8776b4b156dcdf654e1fc5ab0a1e63cfeab
SHA-2 code does not compile on FreeBSD

The code fails to compile with the below error:
qcryptographichash.cpp:55: error: conflicting declaration 'typedef quint64 uint64_t'
/usr/include/sys/types.h:99: error: 'uint64_t' has a previous declaration as 'typedef __uint64_t uint64_t'

FreeBSDs types.h defines the used defines. Maybe it would be less
ugly to switch the code to quint*, or use a define to do so, or to
have basic os detection for stdint.h, not to include sys/types.h.

Change-Id: Ic62ae4b742c1123b4b7e17158d216374e609f59f
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
src/corelib/tools/qcryptographichash.cpp