We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c70815 commit bef14caCopy full SHA for bef14ca
bindings/blst.h
@@ -23,15 +23,17 @@ typedef __UINT64_TYPE__ uint64_t;
23
24
#ifdef __cplusplus
25
extern "C" {
26
-#elif defined(__BLST_CGO__)
+#elif !defined(__STDC_VERSION__) || __STDC_VERSION__<202311
27
+# if defined(__BLST_CGO__)
28
typedef _Bool bool; /* it's assumed that cgo calls modern enough compiler */
-#elif !defined(bool)
29
-# if defined(__STDC_VERSION__) && __STDC_VERSION__>=199901
30
-# define bool _Bool
31
-# else
32
-# define bool int
+# elif !defined(bool)
+# if defined(__STDC_VERSION__) && __STDC_VERSION__>=199901
+# define bool _Bool
+# else
33
+# define bool int
34
+# endif
35
+# define __blst_h_bool__
36
# endif
-# define __blst_h_bool__
37
#endif
38
39
#ifdef SWIG
0 commit comments