]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Fix #1486: build fails on Windows with VS2013 toolset (v120) 1487/head
authorOleg Smirnov <oleg.v.smirnov@gmail.com>
Fri, 22 Jan 2021 11:16:14 +0000 (14:16 +0300)
committerOleg Smirnov <oleg.v.smirnov@gmail.com>
Fri, 22 Jan 2021 11:16:18 +0000 (14:16 +0300)
commitb6700dbaed29e87086c2cf17b03bc7f95247cfb0
tree0f75026f3d12660f17dec948071c6f222a6230c4
parent858fa8eaa9435340d2bda988715e0d9023089bec
Fix #1486: build fails on Windows with VS2013 toolset (v120)

Build fails on compiling xxhash.c having a fuction with "inline" specifier.
"inline" is a c99 keyword and c99 is not yet (fully) supported with MSVC toolset v120:
"The inline keyword is available only in C++. The __inline and __forceinline
keywords are available in both C and C++. For compatibility with previous versions,
_inline is a synonym for __inline."
(Source: http://msdn.microsoft.com/en-us/library/z8y1yy88.aspx)

This fix adds a patch that replaces "inline" with "__inline" in xxhash.c
libarchive/xxhash.c