From 8defbda0cdebd749043f98222f0156872ec49af3 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Sat, 22 Jan 2022 12:53:04 -0400 Subject: [PATCH] Move type def to type.h --- base/os.h | 8 -------- base/types.h | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/base/os.h b/base/os.h index 5957fc3..5d08c4f 100644 --- a/base/os.h +++ b/base/os.h @@ -60,12 +60,4 @@ #endif #endif -#ifdef RobotGo_64 - typedef int64_t intptr; - typedef uint64_t uintptr; -#else - typedef int32_t intptr; - typedef uint32_t uintptr; // Unsigned pointer integer -#endif - #endif /* OS_H */ diff --git a/base/types.h b/base/types.h index 4b88a1d..0e68a83 100644 --- a/base/types.h +++ b/base/types.h @@ -9,6 +9,14 @@ /* Some generic, cross-platform types. */ +#ifdef RobotGo_64 + typedef int64_t intptr; + typedef uint64_t uintptr; +#else + typedef int32_t intptr; + typedef uint32_t uintptr; // Unsigned pointer integer +#endif + struct _MMPoint { size_t x; size_t y;