From 9337d8bc3cde964ba804274fd6d09173c416614f Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Mon, 28 Oct 2024 22:21:23 +0100 Subject: Some more work on cross-platform configuration --- asl/integers.hpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'asl/integers.hpp') 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; -- cgit