summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-25 17:00:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-25 17:00:03 +0000
commit8a2612b33585e832f12f1865811a6b6db8c36a24 (patch)
tree1c2479e2d1b7dd6ded09584aa17258fd9a54339e /defines.h
parented91275a9889d780cc44d56992bd439d45656838 (diff)
* configure.in (RUBY_EXTERN): macro to export symbols in shared
library. [ruby-core:05528] * defines.h, {bcc32,win32,wince}/Makefile.sub (RUBY_EXTERN): moved to configuration pass. * ext/extmk.rb (extmake): RUBY_EXTERN for static linked extensions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/defines.h b/defines.h
index 48ca3aa8a1..8ff20270db 100644
--- a/defines.h
+++ b/defines.h
@@ -195,11 +195,8 @@ void xfree(void*);
#include <net/socket.h> /* intern.h needs fd_set definition */
#endif
+#ifdef RUBY_EXPORT
#undef RUBY_EXTERN
-#if defined _WIN32 && !defined __GNUC__
-# ifndef RUBY_EXPORT
-# define RUBY_EXTERN extern __declspec(dllimport)
-# endif
#endif
#ifndef RUBY_EXTERN