Skip to content

Commit 46612de

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

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

ext/json/ext/generator/generator.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66

77
#include "ruby.h"
88

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

1715
#ifdef HAVE_RUBY_RE_H

0 commit comments

Comments
 (0)