Skip to content

Commit

Permalink
bindings/blst.h: harmonize with the new C23 standard.
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-asm committed Nov 22, 2024
1 parent 2c70815 commit bef14ca
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions bindings/blst.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,17 @@ typedef __UINT64_TYPE__ uint64_t;

#ifdef __cplusplus
extern "C" {
#elif defined(__BLST_CGO__)
#elif !defined(__STDC_VERSION__) || __STDC_VERSION__<202311
# if defined(__BLST_CGO__)
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
# elif !defined(bool)
# if defined(__STDC_VERSION__) && __STDC_VERSION__>=199901
# define bool _Bool
# else
# define bool int
# endif
# define __blst_h_bool__
# endif
# define __blst_h_bool__
#endif

#ifdef SWIG
Expand Down

0 comments on commit bef14ca

Please sign in to comment.