richgel999 / lzham_codec

Lossless data compression codec with LZMA-like ratios but 1.5x-8x faster decompression speed, C/C++
Other
693 stars 71 forks source link

Compile vith Visual Studio 2015 #24

Open gvollant opened 6 years ago

gvollant commented 6 years ago

Hello,

to compile with Visual Studio 2015, I had to modify the beginning of lzham_types.h. I made this:

// File: types.h // See Copyright Notice and license at the end of include/lzham.h

pragma once

// TODO

if defined(_MSC_VER) && (!(defined(MUST_UNDEFINE_STDINTTYPE)))

if _MSC_VER >= 1900

define MUST_UNDEFINE_STDINTTYPE

endif

endif

if defined(APPLE) || defined(FreeBSD) || defined(NetBSD) || defined(MUST_UNDEFINE_STDINTTYPE)

undef INT8_MIN

...

and file continue

In small word, VS2015 and later are like APPLE, we must undefine these type.

gvollant commented 6 years ago

probably same thing in #20