Merge topic 'liblzma-pgi-compiler'
2dd17a54
liblzma: Fix compilation with PGI compiler
This commit is contained in:
commit
f174a1cc61
|
@ -31,9 +31,15 @@ CHECK_INCLUDE_FILE(strings.h HAVE_STRINGS_H)
|
||||||
CHECK_INCLUDE_FILE(string.h HAVE_STRING_H)
|
CHECK_INCLUDE_FILE(string.h HAVE_STRING_H)
|
||||||
CHECK_INCLUDE_FILE(sys/sysctl.h HAVE_SYS_SYSCTL_H)
|
CHECK_INCLUDE_FILE(sys/sysctl.h HAVE_SYS_SYSCTL_H)
|
||||||
|
|
||||||
CHECK_SYMBOL_EXISTS(bswap_16 byteswap.h HAVE_BSWAP_16)
|
CHECK_C_SOURCE_COMPILES (
|
||||||
CHECK_SYMBOL_EXISTS(bswap_32 byteswap.h HAVE_BSWAP_32)
|
"#include<byteswap.h>\nint main(void){bswap_16(0);return 0;}"
|
||||||
CHECK_SYMBOL_EXISTS(bswap_64 byteswap.h HAVE_BSWAP_64)
|
HAVE_BSWAP_16)
|
||||||
|
CHECK_C_SOURCE_COMPILES (
|
||||||
|
"#include<byteswap.h>\nint main(void){bswap_32(0);return 0;}"
|
||||||
|
HAVE_BSWAP_32)
|
||||||
|
CHECK_C_SOURCE_COMPILES (
|
||||||
|
"#include<byteswap.h>\nint main(void){bswap_64(0);return 0;}"
|
||||||
|
HAVE_BSWAP_64)
|
||||||
|
|
||||||
TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
|
TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
|
||||||
|
|
||||||
|
|
|
@ -80,11 +80,7 @@ static const uint32_t SHA256_K[64] = {
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
#ifndef _MSC_VER
|
|
||||||
transform(uint32_t state[static 8], const uint32_t data[static 16])
|
|
||||||
#else
|
|
||||||
transform(uint32_t state[], const uint32_t data[])
|
transform(uint32_t state[], const uint32_t data[])
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
uint32_t W[16];
|
uint32_t W[16];
|
||||||
uint32_t T[8];
|
uint32_t T[8];
|
||||||
|
|
Loading…
Reference in New Issue