Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile vith Visual Studio 2015 #24

Open
gvollant opened this issue Dec 4, 2017 · 1 comment
Open

Compile vith Visual Studio 2015 #24

gvollant opened this issue Dec 4, 2017 · 1 comment

Comments

@gvollant
Copy link

gvollant commented Dec 4, 2017

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
Copy link
Author

gvollant commented Dec 4, 2017

probably same thing in #20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant