Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions support/ebpf/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ _Static_assert(sizeof(uintptr_t) == 8, "bad uintptr_t size");
_Static_assert(sizeof(size_t) == 8, "bad size_t size");

// Define bool type (emulates stdbool.h).
#if __STDC_VERSION__ < 202311L
typedef _Bool bool;
#ifndef __bool_true_false_are_defined
#define true 1
#define false 0
#define __bool_true_false_are_defined 1
#ifndef __bool_true_false_are_defined
#define true 1
#define false 0
#define __bool_true_false_are_defined 1
#endif
#endif

// Go defines `NULL` in `cgo-builtin-prolog`, so we have to check whether
Expand Down