From 6c526497b60108d800dc35eff96e38b7ae03829f Mon Sep 17 00:00:00 2001 From: eban Date: Sun, 3 Aug 2003 09:22:50 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ regex.h | 9 +++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index f8dc742756..d2e2d165dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Aug 3 18:03:44 2003 WATANABE Hirofumi + + * regex.h (re_mbctab): should refer to RUBY_EXPORT. [ruby-ext:02199] + Sun Aug 3 02:45:06 2003 Koji Arai * numeric.c (flo_to_s): get rid of buffer overflow. diff --git a/regex.h b/regex.h index 8e8234cc1a..88868e2b4c 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);