From 1dd1674559c0aae976b84e725e4689a1f5667f1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 5 Mar 2015 16:13:04 +0000 Subject: [PATCH] Move private macro from header to C file --- include/polarssl/sha512.h | 2 -- library/sha512.c | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/polarssl/sha512.h b/include/polarssl/sha512.h index 90b5e3e54..1f0c6546e 100644 --- a/include/polarssl/sha512.h +++ b/include/polarssl/sha512.h @@ -33,11 +33,9 @@ #include #if defined(_MSC_VER) || defined(__WATCOMC__) - #define UL64(x) x##ui64 typedef unsigned __int64 uint64_t; #else #include - #define UL64(x) x##ULL #endif #define POLARSSL_ERR_SHA512_FILE_IO_ERROR -0x007A /**< Read/write error in file. */ diff --git a/library/sha512.c b/library/sha512.c index 5decc8fac..2c22259cf 100644 --- a/library/sha512.c +++ b/library/sha512.c @@ -35,6 +35,12 @@ #include "polarssl/sha512.h" +#if defined(_MSC_VER) || defined(__WATCOMC__) + #define UL64(x) x##ui64 +#else + #define UL64(x) x##ULL +#endif + #include #if defined(POLARSSL_FS_IO)