History

Fix netbsd build

Netbsd uses __UINTPTR_TYPE__ to detect gcc in machine/int_types.h

herman ten brugge committed 5 years ago

Commit e5381601 parent e449db51 file · +2 −0Browse files

Unified · Split

include/tccdefs.h+2−0
@@ -123,8 +123,10 @@ · 122 unmodified lines
123123
124124 #endif
125125 /* Some derived integer types needed to get stdint.h to compile correctly on some platforms */
126+#ifndef __NetBSD__
126127 #define __UINTPTR_TYPE__ unsigned __PTRDIFF_TYPE__
127128 #define __INTPTR_TYPE__ __PTRDIFF_TYPE__
129+#endif
128130 #define __INT32_TYPE__ int
129131
130132 #if !defined _WIN32

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