Skip to content
Merged
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
11 changes: 10 additions & 1 deletion bls12381_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,16 @@
#include <string.h>

typedef uint8_t byte;
typedef _Bool bool; // assuming cgo is using a modern enough compiler

#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 202311
typedef _Bool bool; /* it's assumed that cgo calls modern enough compiler */
#elif !defined(bool)
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901
#define bool _Bool
#else
#define bool int
#endif
#endif

// minimum targeted security level
#define SEC_BITS 128
Expand Down