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
This commit is contained in:
parent
4d12807e30
commit
70abda7e44
@ -3983,6 +3983,7 @@ AC_SUBST(SYMBOL_PREFIX)
|
||||
AC_SUBST(MINIOBJS)
|
||||
AC_SUBST(THREAD_MODEL)
|
||||
AC_SUBST(PLATFORM_DIR)
|
||||
AC_DEFINE_UNQUOTED(EXPORT_PREFIX, "$EXPORT_PREFIX")
|
||||
|
||||
firstmf=`echo $FIRSTMAKEFILE | sed 's/:.*//'`
|
||||
firsttmpl=`echo $FIRSTMAKEFILE | sed 's/.*://'`
|
||||
|
8
dln.c
8
dln.c
@ -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) == '\\')
|
||||
|
Loading…
x
Reference in New Issue
Block a user