summaryrefslogtreecommitdiff
path: root/regex.h
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-03 09:22:50 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-03 09:22:50 +0000
commit6c526497b60108d800dc35eff96e38b7ae03829f (patch)
tree1c7eb400d470db3d098c7fe53333178df314f72e /regex.h
parent2dd7a6ab7e1f7b48f92f488448c5d1e02114904a (diff)
* regex.h (re_mbctab): should refer to RUBY_EXPORT. [ruby-ext:02199]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.h')
-rw-r--r--regex.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/regex.h b/regex.h
index 8e8234c..88868e2 100644
--- a/regex.h
+++ b/regex.h
@@ -88,13 +88,10 @@
#define MBCTYPE_SJIS 2
#define MBCTYPE_UTF8 3
-#if defined IMPORT || defined USEIMPORTLIB
-extern __declspec(dllimport)
-#elif defined EXPORT
-extern __declspec(dllexport)
-#else
extern
-#endif
+#if defined _WIN32 && !defined __GNUC__ && !defined RUBY_EXPORT
+__declspec(dllimport)
+# endif
const unsigned char *re_mbctab;
#if defined(__STDC__)
void re_mbcinit (int);