Skip to content

Commit a0c2d7c

Browse files
committed
Fix compilation error with C23
This fallback already defined at ruby/internal/stdbool.h
1 parent d9c6fdc commit a0c2d7c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ext/json/ext/generator/generator.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
#include "ruby.h"
88

9-
#ifdef HAVE_STDBOOL_H
10-
#include <stdbool.h>
11-
#else
9+
#ifndef RBIMPL_STDBOOL_H
1210
/* This is the fallback definition from Ruby 3.0.5. */
1311
typedef unsigned char _Bool
1412
#define bool _Bool

0 commit comments

Comments
 (0)