Fixed compilation with updated LZMA library using Visual Studio

This commit is contained in:
alexey.lysiuk 2014-04-28 13:06:05 +03:00
parent 64d4ddf559
commit 76fdb4905f
3 changed files with 11 additions and 10 deletions

View file

@ -3,6 +3,10 @@
#include "CpuArch.h"
#ifdef _WIN32
#include <windows.h>
#endif
#ifdef MY_CPU_X86_OR_AMD64
#if (defined(_MSC_VER) && !defined(MY_CPU_AMD64)) || defined(__GNUC__)

View file

@ -6,6 +6,13 @@
#include "Types.h"
#ifdef _WIN32
#include <windows.h>
typedef DWORD WRes;
#else
typedef int WRes;
#endif
#ifdef __cplusplus
extern "C" {
#endif

View file

@ -6,10 +6,6 @@
#include <stddef.h>
#ifdef _WIN32
#include <windows.h>
#endif
#ifndef EXTERN_C_BEGIN
#ifdef __cplusplus
#define EXTERN_C_BEGIN extern "C" {
@ -42,12 +38,6 @@ EXTERN_C_BEGIN
typedef int SRes;
#ifdef _WIN32
typedef DWORD WRes;
#else
typedef int WRes;
#endif
#ifndef RINOK
#define RINOK(x) { int __result__ = (x); if (__result__ != 0) return __result__; }
#endif