diff options
| author | Shauren <shauren.trinity@gmail.com> | 2014-10-19 14:40:13 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2014-10-19 14:40:13 +0200 |
| commit | 035bda05adc12245e5c59d554c30092efdb64460 (patch) | |
| tree | 6286dda4f615e9b74bfd59a49c5bd255e91325b8 /src/tools/vmap4_extractor | |
| parent | e2c2bce90f1713136c2a256e423e5d136dab2389 (diff) | |
Tools/Extractors: Build fixes for linux
Diffstat (limited to 'src/tools/vmap4_extractor')
| -rw-r--r-- | src/tools/vmap4_extractor/mpqfile.h | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/src/tools/vmap4_extractor/mpqfile.h b/src/tools/vmap4_extractor/mpqfile.h index 12b666f7c5d..4a283e1dd96 100644 --- a/src/tools/vmap4_extractor/mpqfile.h +++ b/src/tools/vmap4_extractor/mpqfile.h @@ -11,25 +11,9 @@ #include <vector> #include <iostream> #include <deque> +#include <cstdint> #include "CascLib.h" -#ifdef _WIN32 -#include <Windows.h> // mainly only HANDLE definition is required -typedef __int64 int64; -typedef __int32 int32; -typedef __int16 int16; -typedef __int8 int8; -typedef unsigned __int64 uint64; -typedef unsigned __int32 uint32; -typedef unsigned __int16 uint16; -typedef unsigned __int8 uint8; -#else -#include <stdint.h> -#ifndef uint64_t -#ifdef __linux__ -#include <linux/types.h> -#endif -#endif typedef int64_t int64; typedef int32_t int32; typedef int16_t int16; @@ -38,9 +22,12 @@ typedef uint64_t uint64; typedef uint32_t uint32; typedef uint16_t uint16; typedef uint8_t uint8; -#endif -using namespace std; +#ifdef _WIN32 +#include <Windows.h> // mainly only HANDLE definition is required +#else +int GetLastError(); +#endif class MPQFile { |
