summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-19 14:31:09 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-19 14:31:09 (GMT)
commit47084e129c41ec05d8149f634b3d3ae09b38756d (patch)
treef08e7857bd40d1d4f9f685854e6187fac6cd5d1b /main.c
parent9488784157d833fcc8c6b40978821be98e94ef6c (diff)
* Makefile.in (XCFLAGS): separated as well as win32/Makefile.sub.
* main.c (always_gc): dllimport is required for VC to import a DLL symbol. fixed: [ruby-dev:28051] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 3c1903a..35dfc9e 100644
--- a/main.c
+++ b/main.c
@@ -10,6 +10,7 @@
**********************************************************************/
+#undef RUBY_EXPORT
#include "ruby.h"
#if defined(__MACOS__) && defined(__MWERKS__)
@@ -25,7 +26,7 @@ int
main(int argc, char **argv, char **envp)
{
#ifdef RUBY_GC_DEBUG
- extern int always_gc;
+ RUBY_EXTERN int always_gc;
always_gc = getenv("RUBY_ALWAYS_GC") != NULL;
#endif
#ifdef _WIN32