Move U64 macro from sha.h to sha512.c
[openssl.git] / crypto / sha / sha512.c
index 03189a9d9c4420d36bdd7d31e7b5d01241adf0be..c70edf572ae236281e62f886afa8810214411cb5 100644 (file)
 # define SHA512_BLOCK_CAN_MANAGE_UNALIGNED_DATA
 #endif
 
+#if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__)
+# define U64(C)     C##UI64
+#elif defined(__arch64__)
+# define U64(C)     C##UL
+#else
+# define U64(C)     C##ULL
+#endif
+
 int sha512_224_init(SHA512_CTX *c)
 {
     c->h[0] = U64(0x8c3d37c819544da2);