From 8530050c794671a8efe9c70b155d384f8760007a Mon Sep 17 00:00:00 2001 From: Lyle Johnson <lyle@lylejohnson.name> Date: Sat, 17 Oct 2009 16:04:38 -0500 Subject: [PATCH] Added __declspec(dllexport) for MinGW so that DLL entry point is exported correctly --- ext/fox16/FXRuby.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/fox16/FXRuby.cpp b/ext/fox16/FXRuby.cpp index 650418c..220e976 100755 --- a/ext/fox16/FXRuby.cpp +++ b/ext/fox16/FXRuby.cpp @@ -2016,7 +2016,11 @@ extern "C" void Init_ui(void); #define REQUIRE(fname) rb_funcall(rb_mKernel,rb_intern("require"),1,rb_str_new2((fname))) #endif -extern "C" void Init_fox16(void) { +extern "C" void +#if defined _WIN32 +__declspec(dllexport) +#endif +Init_fox16(void) { Init_core(); Init_dc(); Init_frames(); -- GitLab