diff options
author | Brad King <brad.king@kitware.com> | 2018-06-01 16:54:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-06-01 16:54:13 (GMT) |
commit | 81870f1159a7b2649b027a6c3f75eba555831488 (patch) | |
tree | 05eb767f2f2becb6480cfe348d08ebca4e1fc1cf /Source/kwsys/MD5.c | |
parent | eed0df951d95d48e7856107175a2baba212c3206 (diff) | |
parent | 3af8c7715b359affce99c575bdcb84ca87585bb2 (diff) | |
download | CMake-81870f1159a7b2649b027a6c3f75eba555831488.zip CMake-81870f1159a7b2649b027a6c3f75eba555831488.tar.gz CMake-81870f1159a7b2649b027a6c3f75eba555831488.tar.bz2 |
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys:
KWSys 2018-06-01 (8ef62b28)
Diffstat (limited to 'Source/kwsys/MD5.c')
-rw-r--r-- | Source/kwsys/MD5.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/kwsys/MD5.c b/Source/kwsys/MD5.c index 3188fb6..97cf9ba 100644 --- a/Source/kwsys/MD5.c +++ b/Source/kwsys/MD5.c @@ -6,7 +6,7 @@ /* Work-around CMake dependency scanning limitation. This must duplicate the above list of headers. */ #if 0 -#include "MD5.h.in" +# include "MD5.h.in" #endif #include <stddef.h> /* size_t */ @@ -19,8 +19,8 @@ implementation file. */ #if defined(__clang__) && !defined(__INTEL_COMPILER) -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wcast-align" +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wcast-align" #endif /* @@ -98,9 +98,9 @@ typedef struct md5_state_s #undef BYTE_ORDER /* 1 = big-endian, -1 = little-endian, 0 = unknown */ #ifdef ARCH_IS_BIG_ENDIAN -#define BYTE_ORDER (ARCH_IS_BIG_ENDIAN ? 1 : -1) +# define BYTE_ORDER (ARCH_IS_BIG_ENDIAN ? 1 : -1) #else -#define BYTE_ORDER 0 +# define BYTE_ORDER 0 #endif #define T_MASK ((md5_word_t)~0) @@ -222,11 +222,11 @@ static void md5_process(md5_state_t* pms, const md5_byte_t* data /*[64]*/) const md5_byte_t* xp = data; int i; -#if BYTE_ORDER == 0 +# if BYTE_ORDER == 0 X = xbuf; /* (dynamic only) */ -#else -#define xbuf X /* (static only) */ -#endif +# else +# define xbuf X /* (static only) */ +# endif for (i = 0; i < 16; ++i, xp += 4) xbuf[i] = (md5_word_t)(xp[0] + (xp[1] << 8) + (xp[2] << 16) + (xp[3] << 24)); @@ -420,7 +420,7 @@ static void md5_finish(md5_state_t* pms, md5_byte_t digest[16]) } #if defined(__clang__) && !defined(__INTEL_COMPILER) -#pragma clang diagnostic pop +# pragma clang diagnostic pop #endif /* Wrap up the MD5 state in our opaque structure. */ |