History

*BSD: protect against incompatible redefinitions of int64_t/uint64_t.

Christian Jullien committed 5 years ago

Commit 33257c61 parent 8db839c1 file · +6 −1Browse files

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

Unified · Split

include/stddef.h+6−1
@@ -17,12 +17,17 @@ typedef union { long long __ll; long double __ld; } max_align_t; · 16 unmodified lines
1717 typedef signed char int8_t;
1818 typedef signed short int int16_t;
1919 typedef signed int int32_t;
20−typedef signed __INT64_TYPE__ int64_t;
2120 typedef unsigned char uint8_t;
2221 typedef unsigned short int uint16_t;
2322 typedef unsigned int uint32_t;
23+#if defined(__LP64__) \
24+ && !defined(__FreeBSD__) \
25+ && !(defined(__NetBSD__) && defined(__aarch64__))
26+typedef signed __INT64_TYPE__ int64_t;
2427 typedef unsigned __INT64_TYPE__ uint64_t;
2528 #endif
29+#endif
30+#endif
2631
2732 #ifndef NULL
2833 #define NULL ((void*)0)

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