Compile SHA-2 code on systems without stdint.h
authorBradley T. Hughes <bradley.hughes@nokia.com>
Tue, 28 Feb 2012 08:25:20 +0000 (09:25 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 28 Feb 2012 17:53:32 +0000 (18:53 +0100)
commitc7a059e376bd0105ad470017a774715b112de8b4
tree0983c38a88e715e2b45221906d659c332e53e644
parentf3b68e352e4ce3d9a725f57e33ab6c479c27720c
Compile SHA-2 code on systems without stdint.h

stdint.h is a C99-ism, which isn't available everywhere. The sha.h
header tells us we need 4 typedefs. Add these to qcryptographichash.cpp
before including sha.h and comment out the stdint.h include in sha.h.

Change-Id: I1ede9569fa7eaa84de3befeb3c58cc6a05aa522c
Reviewed-by: Oliver Wolff <oliver.wolff@nokia.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
src/3rdparty/rfc6234/sha.h
src/corelib/tools/qcryptographichash.cpp