summaryrefslogtreecommitdiffstats
path: root/Utilities/cmliblzma
Commit message (Collapse)AuthorAgeFilesLines
* liblzma: Fix compilation with PGI compilerChuck Atkins2014-08-042-7/+9
| | | | | | | | | | | | | | | | | | | | | | - sha265.c is using some C99 specific features, in particular static array dimensions in a function parameter array (see section 6.7.5-7 of the C99 spec). A #ifndef check was in place to prevent compilation under MSVC but it actually needed to check for C99 compliance instead. Even still, the C99 code fails on a few compilers (PGI being one) so for compatibility reasons, the C99 version of the function declaration is removed entirely, leaving only the C89 version. - CHECK_SYMBOL_EXISTS is used to determine the presense of bswap functions from byteswap.h. Most compilers re-dedefine the bswap_N functions as a __bswap_N function implemented by the compiler. Since bswap_N is usually defined as a macro then it's mere presence passes the check. Some versions of the PGI compiler though have shipped broken headers for byteswap.h, in particular 11.3 for x64 linux provides byteswap.h but is missing an associated bits/byteswap.h which causes some of the bswap_N macros to be defined but broken and unusable. The bswap_N checks have been converted to CHECK_SOURCE_COMPILES to ensure that the bswap_N calls are actually usable and not just merely defined.
* liblzma: Avoid defining a 'restrict' macroBrad King2014-07-2931-101/+103
| | | | | | | | | | Any "#define restrict ..." line may conflict with MSVC header files that use "__declspec(restrict)". Define our own LZMA_RESTRICT macro in "Utilities/cmliblzma/config.h.in" and transform liblzma code to use it: git grep -lE '\<restrict\>' Utilities/cmliblzma/liblzma | xargs sed -i 's/\<restrict\>/LZMA_RESTRICT/g'
* liblzma: Disable warnings to avoid changing 3rd party codeBrad King2014-07-292-1/+13
|
* liblzma: Port to VS 6, 7.0Daniel Pfeifer2014-07-292-17/+10
| | | | Also remove use of MSVC intrinsic.
* liblzma: Port from C99 to C89/90Daniel Pfeifer2014-07-2961-700/+1080
| | | | | Remove use of designated initializers and declarations of variables after statements. Leave "//" comments as-is for now.
* liblzma: Add CMake build systemDaniel Pfeifer2014-07-237-8/+491
| | | | | Modify sources just enough to build without the full xz common directory.
* liblzma: Remove unused Makefile.* filesBrad King2014-07-239-387/+0
| | | | We will provide our own CMake-based build system.
* liblzma: Add README-CMake.txtBrad King2014-07-231-0/+66
| | | | Describe how to update liblzma from upstream.
* Merge branch 'liblzma-upstream' into add-liblzmaBrad King2014-07-21148-0/+26264
|
* liblzma: Add .gitattributes to ignore whitespace checksBrad King2014-07-211-0/+1
Tell Git not to check whitespace in third-party code.