From 265ed24ac09aacabb9422b4f2fe8a12dc338a633 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 29 Oct 2009 01:34:19 +0000 Subject: External API function linkage decoration adjustment --- ares/m4/cares-confopts.m4 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'ares/m4/cares-confopts.m4') diff --git a/ares/m4/cares-confopts.m4 b/ares/m4/cares-confopts.m4 index 5af3232ad..241bb498e 100644 --- a/ares/m4/cares-confopts.m4 +++ b/ares/m4/cares-confopts.m4 @@ -16,7 +16,7 @@ #*************************************************************************** # File version for 'aclocal' use. Keep it a single number. -# serial 6 +# serial 7 dnl CARES_CHECK_OPTION_CURLDEBUG @@ -303,10 +303,15 @@ dnl been done to prevent interferences on other tests. AC_DEFUN([CARES_CONFIGURE_HIDDEN_SYMBOLS], [ AC_MSG_CHECKING([whether to actually hide library internal symbols]) - if test "$want_hidden_symbols" = "yes" && + if test x"$ac_cv_native_windows" != "xyes" && + test "$want_hidden_symbols" = "yes" && test "$hidden_symbols_supported" = "yes"; then tmp_save_CFLAGS="$CFLAGS" CFLAGS="$tmp_save_CFLAGS $hidden_symbols_CFLAGS" + AC_DEFINE_UNQUOTED(CARES_HIDDEN_SYMBOLS, 1, + [Define to 1 to enable hiding of library internal symbols.]) + AC_DEFINE_UNQUOTED(CARES_EXTERN_SYMBOL, $hidden_symbols_extern, + [Definition to make a library symbol externally visible.]) AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) -- cgit v1.2.3