diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-10-28 18:39:01 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-12-20 15:35:58 +0100 |
commit | 4a3185b782dabeb664fcf2fa4f6d17e36cf23d0e (patch) | |
tree | 2cc982f8972b7b809819032b41e618e8506abbd6 /asl/integers.hpp | |
parent | e1f9d9ca1ef3c69da3b887b0af298be0aea4a5f9 (diff) |
Start fixing some cross platform issues
Diffstat (limited to 'asl/integers.hpp')
-rw-r--r-- | asl/integers.hpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/asl/integers.hpp b/asl/integers.hpp index b5d3e99..716b981 100644 --- a/asl/integers.hpp +++ b/asl/integers.hpp @@ -1,14 +1,17 @@ #pragma once
-using int8_t = char;
-using int16_t = short;
-using int32_t = int;
-using int64_t = long long;
+using int8_t = signed char;
+using int16_t = signed short;
+using int32_t = signed int;
+using int64_t = signed long;
+
+// @Todo Proper type definition for Windows/Linux
using uint8_t = unsigned char;
using uint16_t = unsigned short;
using uint32_t = unsigned int;
-using uint64_t = unsigned long long;
+using uint64_t = unsigned long;
+using size_t = uint64_t;
using isize_t = int64_t;
|