diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/common_types.h | 43 | ||||
| -rw-r--r-- | src/common/file_util.cpp | 1 |
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 | 31 | typedef std::uint8_t u8; ///< 8-bit unsigned byte |
| 32 | typedef std::uint16_t u16; ///< 16-bit unsigned short | ||
| 33 | typedef std::uint32_t u32; ///< 32-bit unsigned word | ||
| 34 | typedef std::uint64_t u64; ///< 64-bit unsigned int | ||
| 31 | 35 | ||
| 32 | #include <tchar.h> | 36 | typedef std::int8_t s8; ///< 8-bit signed byte |
| 37 | typedef std::int16_t s16; ///< 16-bit signed short | ||
| 38 | typedef std::int32_t s32; ///< 32-bit signed word | ||
| 39 | typedef std::int64_t s64; ///< 64-bit signed int | ||
| 33 | 40 | ||
| 34 | typedef unsigned __int8 u8; ///< 8-bit unsigned byte | 41 | typedef float f32; ///< 32-bit floating point |
| 35 | typedef unsigned __int16 u16; ///< 16-bit unsigned short | 42 | typedef double f64; ///< 64-bit floating point |
| 36 | typedef unsigned __int32 u32; ///< 32-bit unsigned word | ||
| 37 | typedef unsigned __int64 u64; ///< 64-bit unsigned int | ||
| 38 | |||
| 39 | typedef signed __int8 s8; ///< 8-bit signed byte | ||
| 40 | typedef signed __int16 s16; ///< 16-bit signed short | ||
| 41 | typedef signed __int32 s32; ///< 32-bit signed word | ||
| 42 | typedef signed __int64 s64; ///< 64-bit signed int | ||
| 43 | |||
| 44 | #else | ||
| 45 | |||
| 46 | typedef unsigned char u8; ///< 8-bit unsigned byte | ||
| 47 | typedef unsigned short u16; ///< 16-bit unsigned short | ||
| 48 | typedef unsigned int u32; ///< 32-bit unsigned word | ||
| 49 | typedef unsigned long long u64; ///< 64-bit unsigned int | ||
| 50 | |||
| 51 | typedef signed char s8; ///< 8-bit signed byte | ||
| 52 | typedef signed short s16; ///< 16-bit signed short | ||
| 53 | typedef signed int s32; ///< 32-bit signed word | ||
| 54 | typedef 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 | |||
| 62 | typedef float f32; ///< 32-bit floating point | ||
| 63 | typedef 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 78a642599..77a226885 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> |