Conflict between SDK and lib7zip (NEEDS_INT_DEFINED)

Sep 16, 2015 at 4:49 PM
We're using the SDK and lib7zip on Linux and we're seeing conflicts during compile time.

7zip/include/lib7zip.h:17:0: error: "__int64" redefined [-Werror]

define __int64 long long int

^
casablanca-c7d85ee385c6/Release/include/cpprest/details/SafeInt3.hpp:535:0: note: this is the location of the previous definition

define __int64 long long

Looking through the SDK header, I see that NEEDS_INT_DEFINED controls the definitions. This flag is set unconditionally when GCC is the compiler.

Would it be possible to conditionally define each of these?
For example:

ifdef NEEDS_INT_DEFINED

ifndef __int8

define __int8 char

endif

ifndef __int16

define __int16 short

endif

ifndef __int32

define __int32 int

endif

ifndef __int64

define __int64 long long

endif

endif

I would also be open to being able to override NEEDS_INT_DEFINED in some way from the command line.