History

OpenBSD: x86 use few clang compatible C types

Christian Jullien committed 5 years ago

Commit 42220671 parent db6dd661 file · +5 −0Browse files

Showing the changes to include (1 of 1 file). Show all

Unified · Split

include/tccdefs.h+5−0
@@ -18,8 +18,13 @@ · 17 unmodified lines
1818
1919 #if __SIZEOF_POINTER__ == 4
2020 /* 32bit systems. */
21+#if defined TARGETOS_OpenBSD
22+ #define __SIZE_TYPE__ unsigned long
23+ #define __PTRDIFF_TYPE__ long
24+#else
2125 #define __SIZE_TYPE__ unsigned int
2226 #define __PTRDIFF_TYPE__ int
27+#endif
2328 #define __ILP32__ 1
2429 #define __INT64_TYPE__ long long
2530 #elif __SIZEOF_LONG__ == 4

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t