summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/common_types.h43
-rw-r--r--src/common/file_util.cpp1
2 files changed, 12 insertions, 32 deletions
diff --git a/src/common/common_types.h b/src/common/common_types.h
index 00fde828d..7ce6b2240 100644
--- a/src/common/common_types.h
+++ b/src/common/common_types.h
@@ -25,42 +25,21 @@
25#pragma once 25#pragma once
26 26
27#include <cmath> 27#include <cmath>
28#include <cstdint>
28#include <xmmintrin.h> // data_types__m128.cpp 29#include <xmmintrin.h> // data_types__m128.cpp
29 30
30#ifdef _WIN32 31typedef std::uint8_t u8; ///< 8-bit unsigned byte
32typedef std::uint16_t u16; ///< 16-bit unsigned short
33typedef std::uint32_t u32; ///< 32-bit unsigned word
34typedef std::uint64_t u64; ///< 64-bit unsigned int
31 35
32#include <tchar.h> 36typedef std::int8_t s8; ///< 8-bit signed byte
37typedef std::int16_t s16; ///< 16-bit signed short
38typedef std::int32_t s32; ///< 32-bit signed word
39typedef std::int64_t s64; ///< 64-bit signed int
33 40
34typedef unsigned __int8 u8; ///< 8-bit unsigned byte 41typedef float f32; ///< 32-bit floating point
35typedef unsigned __int16 u16; ///< 16-bit unsigned short 42typedef double f64; ///< 64-bit floating point
36typedef unsigned __int32 u32; ///< 32-bit unsigned word
37typedef unsigned __int64 u64; ///< 64-bit unsigned int
38
39typedef signed __int8 s8; ///< 8-bit signed byte
40typedef signed __int16 s16; ///< 16-bit signed short
41typedef signed __int32 s32; ///< 32-bit signed word
42typedef signed __int64 s64; ///< 64-bit signed int
43
44#else
45
46typedef unsigned char u8; ///< 8-bit unsigned byte
47typedef unsigned short u16; ///< 16-bit unsigned short
48typedef unsigned int u32; ///< 32-bit unsigned word
49typedef unsigned long long u64; ///< 64-bit unsigned int
50
51typedef signed char s8; ///< 8-bit signed byte
52typedef signed short s16; ///< 16-bit signed short
53typedef signed int s32; ///< 32-bit signed word
54typedef signed long long s64; ///< 64-bit signed int
55
56// For using windows lock code
57#define TCHAR char
58#define LONG int
59
60#endif // _WIN32
61
62typedef float f32; ///< 32-bit floating point
63typedef double f64; ///< 64-bit floating point
64 43
65#include "common/common.h" 44#include "common/common.h"
66 45
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp
index 9e40e87d4..35da07306 100644
--- a/src/common/file_util.cpp
+++ b/src/common/file_util.cpp
@@ -13,6 +13,7 @@
13#include <commdlg.h> // for GetSaveFileName 13#include <commdlg.h> // for GetSaveFileName
14#include <io.h> 14#include <io.h>
15#include <direct.h> // getcwd 15#include <direct.h> // getcwd
16#include <tchar.h>
16#else 17#else
17#include <sys/param.h> 18#include <sys/param.h>
18#include <dirent.h> 19#include <dirent.h>