mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-01-21 23:50:58 +00:00
Fix "_" problems.
This commit is contained in:
parent
ed16632673
commit
9f36417b5e
2 changed files with 14 additions and 1 deletions
13
configure.in
13
configure.in
|
@ -119,6 +119,19 @@ AC_TRY_COMPILE(
|
|||
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.
|
||||
AC_FUNC_ALLOCA
|
||||
AC_FUNC_MEMCMP
|
||||
|
|
|
@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#ifndef __ASM_I386__
|
||||
#define __ASM_I386__
|
||||
|
||||
#ifdef ELF
|
||||
#ifdef HAVE_SYM_PREFIX_UNDERSCORE
|
||||
#define C(label) label
|
||||
#else
|
||||
#define C(label) _##label
|
||||
|
|
Loading…
Reference in a new issue