diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-10-28 22:21:23 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-12-20 15:35:58 +0100 |
commit | 9337d8bc3cde964ba804274fd6d09173c416614f (patch) | |
tree | b30d25c20eab06175339fefee4eda0bbd6706d9c /asl/integers.hpp | |
parent | 4a3185b782dabeb664fcf2fa4f6d17e36cf23d0e (diff) |
Some more work on cross-platform configuration
Diffstat (limited to 'asl/integers.hpp')
-rw-r--r-- | asl/integers.hpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/asl/integers.hpp b/asl/integers.hpp index 716b981..8b7488f 100644 --- a/asl/integers.hpp +++ b/asl/integers.hpp @@ -1,16 +1,24 @@ #pragma once
+#include "asl/config.hpp"
+
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
+#if ASL_OS_WINDOWS
+ using int64_t = signed long long;
+#elif ASL_OS_LINUX
+ using int64_t = signed long;
+#endif
using uint8_t = unsigned char;
using uint16_t = unsigned short;
using uint32_t = unsigned int;
-using uint64_t = unsigned long;
+#if ASL_OS_WINDOWS
+ using uint64_t = unsigned long long;
+#elif ASL_OS_LINUX
+ using uint64_t = unsigned long;
+#endif
using size_t = uint64_t;
using isize_t = int64_t;
|