Skip to content

Commit

Permalink
Fix compilation error with C23
Browse files Browse the repository at this point in the history
This fallback already defined at ruby/internal/stdbool.h
  • Loading branch information
hsbt committed Oct 8, 2024
1 parent d9c6fdc commit 538c6a7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ext/json/ext/generator/generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@

#include "ruby.h"

#ifdef HAVE_STDBOOL_H
#include <stdbool.h>
#else
/* This is the fallback definition from Ruby 3.0.5. */
typedef unsigned char _Bool
#define bool _Bool
#endif

#ifdef HAVE_RUBY_RE_H
#include "ruby/re.h"
#else
Expand Down

0 comments on commit 538c6a7

Please sign in to comment.