-
Notifications
You must be signed in to change notification settings - Fork 352
Closed
Description
Currently, ruby uses these two options for gcc : -ansi -std=iso9899:199409.
This leads to compilation error on AIX when compiling generator.c.
We can avoid this compilation error by reordering #include in fbuffer.h.
On AIX, we need to include ruby.h before standard include files to use some defines in ruby's config.h.
Could you please reorder #include in fbuffer.h like this?
diff --git a/ext/json/fbuffer/fbuffer.h b/ext/json/fbuffer/fbuffer.h
index f7c2b03..0c53296 100644
--- a/ext/json/fbuffer/fbuffer.h
+++ b/ext/json/fbuffer/fbuffer.h
@@ -2,8 +2,8 @@
#ifndef FBUFFER_H
#define FBUFFER_H
-#include <assert.h>
#include "ruby.h"
+#include <assert.h>
#ifdef HAVE_RUBY_ENCODING_H
#include "ruby/encoding.h"
Metadata
Metadata
Assignees
Labels
No labels