Skip to content

Commit 8defbda

Browse files
committed
Move type def to type.h
1 parent 63f914a commit 8defbda

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

base/os.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,4 @@
6060
#endif
6161
#endif
6262

63-
#ifdef RobotGo_64
64-
typedef int64_t intptr;
65-
typedef uint64_t uintptr;
66-
#else
67-
typedef int32_t intptr;
68-
typedef uint32_t uintptr; // Unsigned pointer integer
69-
#endif
70-
7163
#endif /* OS_H */

base/types.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99

1010
/* Some generic, cross-platform types. */
1111

12+
#ifdef RobotGo_64
13+
typedef int64_t intptr;
14+
typedef uint64_t uintptr;
15+
#else
16+
typedef int32_t intptr;
17+
typedef uint32_t uintptr; // Unsigned pointer integer
18+
#endif
19+
1220
struct _MMPoint {
1321
size_t x;
1422
size_t y;

0 commit comments

Comments
 (0)