summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/curses/curses.c3
-rw-r--r--ext/digest/sha2/sha2.c2
-rw-r--r--ext/iconv/iconv.c2
-rw-r--r--ext/racc/cparse/cparse.c2
4 files changed, 5 insertions, 4 deletions
diff --git a/ext/curses/curses.c b/ext/curses/curses.c
index a666cce897..d2263ef007 100644
--- a/ext/curses/curses.c
+++ b/ext/curses/curses.c
@@ -13,6 +13,8 @@
* - Takaaki Tateishi (ttate@kt.jaist.ac.jp)
*/
+#include "ruby.h"
+
#if defined(HAVE_NCURSES_H)
# include <ncurses.h>
#elif defined(HAVE_NCURSES_CURSES_H)
@@ -46,7 +48,6 @@
#endif
#include <stdio.h>
-#include "ruby.h"
#include "rubyio.h"
static VALUE mCurses;
diff --git a/ext/digest/sha2/sha2.c b/ext/digest/sha2/sha2.c
index a3c3258082..31b5ff1690 100644
--- a/ext/digest/sha2/sha2.c
+++ b/ext/digest/sha2/sha2.c
@@ -36,10 +36,10 @@
/* $RoughId: sha2.c,v 1.3 2002/02/26 22:03:36 knu Exp $ */
/* $Id$ */
+#include "sha2.h"
#include <stdio.h>
#include <string.h> /* memcpy()/memset() or bcopy()/bzero() */
#include <assert.h> /* assert() */
-#include "sha2.h"
/*
* ASSERT NOTE:
diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c
index 098ffb0cfc..e9f2687858 100644
--- a/ext/iconv/iconv.c
+++ b/ext/iconv/iconv.c
@@ -32,10 +32,10 @@ Which coding systems are available, it depends on the platform.
=end
*/
+#include "ruby.h"
#include <errno.h>
#include <iconv.h>
#include <assert.h>
-#include "ruby.h"
#include "intern.h"
/* Invalid value for iconv_t is -1 but 0 for VALUE, I hope VALUE is
diff --git a/ext/racc/cparse/cparse.c b/ext/racc/cparse/cparse.c
index 6ed6293dee..3d75cc9ca7 100644
--- a/ext/racc/cparse/cparse.c
+++ b/ext/racc/cparse/cparse.c
@@ -11,8 +11,8 @@
*/
-#include <stdio.h>
#include "ruby.h"
+#include <stdio.h>
/* -----------------------------------------------------------------------