diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-01 04:29:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-01 04:29:20 +0000 |
commit | 70abda7e44deaedd6823e1540765c7ce438907a5 (patch) | |
tree | 121c8de108c4545a3819fdf4456c01c6ebab16aa /dln.c | |
parent | 4d12807e308cb75de328db0b7a064978e0e04f13 (diff) | |
download | ruby-70abda7e44deaedd6823e1540765c7ce438907a5.tar.gz |
dln.c: use EXPORT_PREFIX
* configure.in (EXPORT_PREFIX): define exported symbol prefix
string in config.h.
* dln.c (FUNCNAME_PREFIX): use configured EXPORT_PREFIX, not
hardcoded condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
-rw-r--r-- | dln.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -106,13 +106,7 @@ dln_loaderror(const char *format, ...) # define USE_DLN_DLOPEN #endif -#ifndef FUNCNAME_PATTERN -# if defined(__hp9000s300) || ((defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)) && !defined(__ELF__)) || defined(__BORLANDC__) || defined(NeXT) || defined(__WATCOMC__) || defined(MACOSX_DYLD) -# define FUNCNAME_PREFIX "_Init_" -# else -# define FUNCNAME_PREFIX "Init_" -# endif -#endif +#define FUNCNAME_PREFIX EXPORT_PREFIX"Init_" #if defined __CYGWIN__ || defined DOSISH #define isdirsep(x) ((x) == '/' || (x) == '\\') |