summaryrefslogtreecommitdiff
path: root/ext/dl/dl.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-06 02:32:40 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-06 02:32:40 +0000
commita9639c22ef3588882cd2554dba419063f72c921b (patch)
treeedaf8e022847fb8af476e32238b952db12aeb442 /ext/dl/dl.c
parentc4e6638ce0e2489fd0ad4830321858387e354233 (diff)
* ext/dl/dl.c (Init_dl): function declaration should precede
statements before C99. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/dl.c')
-rw-r--r--ext/dl/dl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/dl/dl.c b/ext/dl/dl.c
index 3d1d90a6420..ed46c0ef338 100644
--- a/ext/dl/dl.c
+++ b/ext/dl/dl.c
@@ -69,13 +69,13 @@ rb_dl_value2ptr(VALUE self, VALUE val)
void
Init_dl()
{
- rbdl_id_cdecl = rb_intern("cdecl");
- rbdl_id_stdcall = rb_intern("stdcall");
-
void Init_dlhandle();
void Init_dlcfunc();
void Init_dlptr();
+ rbdl_id_cdecl = rb_intern("cdecl");
+ rbdl_id_stdcall = rb_intern("stdcall");
+
rb_mDL = rb_define_module("DL");
rb_eDLError = rb_define_class_under(rb_mDL, "DLError", rb_eStandardError);
rb_eDLTypeError = rb_define_class_under(rb_mDL, "DLTypeError", rb_eDLError);