Fix "_" problems.

This commit is contained in:
Jeff Teunissen 2000-05-17 10:22:12 +00:00
parent ed16632673
commit 9f36417b5e
2 changed files with 14 additions and 1 deletions

View file

@ -119,6 +119,19 @@ AC_TRY_COMPILE(
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
) )
dnl Check for symbol underscore prefix
dnl !!! FIXME !!! Do some real check here...
AC_MSG_CHECKING(whether C symbols are prefixed by '_')
case "${target}" in
*-*-msdos* | *-*-djgpp* | *-*-mingw* | *-*-cygwin* | *-*-openbsd*)
AC_DEFINE(HAVE_SYM_PREFIX_UNDERSCORE)
AC_MSG_RESULT(yes)
;;
*)
AC_MSG_RESULT(no)
;;
esac
dnl Checks for library functions. dnl Checks for library functions.
AC_FUNC_ALLOCA AC_FUNC_ALLOCA
AC_FUNC_MEMCMP AC_FUNC_MEMCMP

View file

@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef __ASM_I386__ #ifndef __ASM_I386__
#define __ASM_I386__ #define __ASM_I386__
#ifdef ELF #ifdef HAVE_SYM_PREFIX_UNDERSCORE
#define C(label) label #define C(label) label
#else #else
#define C(label) _##label #define C(label) _##label