mirror of
https://git.code.sf.net/p/quake/quake2forge
synced 2024-12-12 13:42:21 +00:00
fix the _ symbol prefix detection. software rendering now works
This commit is contained in:
parent
24da5fdadc
commit
81b31308fa
15 changed files with 51 additions and 3 deletions
|
@ -78,6 +78,15 @@ AC_SUBST(ASFLAGS)
|
|||
SDL_FLAGS=`sdl-config --libs`
|
||||
AC_SUBST(SDL_FLAGS)
|
||||
|
||||
AC_MSG_CHECKING(for underscore prefix in names)
|
||||
AC_TRY_LINK(
|
||||
[asm(".long _bar");
|
||||
int bar;],
|
||||
[],
|
||||
AC_DEFINE(HAVE_SYM_PREFIX_UNDERSCORE, 1, [Define this if C symbols are prefixed with an underscore]) AC_MSG_RESULT(yes),
|
||||
AC_MSG_RESULT(no)
|
||||
)
|
||||
|
||||
AC_CONFIG_FILES([Makefile
|
||||
src/Makefile
|
||||
src/baseq2/Makefile
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
// x86 assembly-language screen copying code.
|
||||
//
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#include "../src/qasm.h"
|
||||
|
||||
.data
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
// x86 assembly-language polygon model drawing code
|
||||
//
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#include "../src/qasm.h"
|
||||
#include "d_ifacea.h"
|
||||
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
// math.s
|
||||
// x86 assembly-language math routines.
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#define GLQUAKE 1 // don't include unneeded defs
|
||||
#include "../src/qasm.h"
|
||||
|
||||
|
|
|
@ -20,10 +20,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#ifndef __ASM_I386__
|
||||
#define __ASM_I386__
|
||||
|
||||
#if defined ELF && !defined __OpenBSD__
|
||||
#define C(label) label
|
||||
#else
|
||||
#ifdef HAVE_SYM_PREFIX_UNDERSCORE
|
||||
#define C(label) _##label
|
||||
#else
|
||||
#define C(label) label
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
// x86 assembly-language Alias model transform and project code.
|
||||
//
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#include "../src/qasm.h"
|
||||
#include "d_ifacea.h"
|
||||
|
||||
|
|
|
@ -4,6 +4,9 @@
|
|||
// subdivision.
|
||||
//
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#include "../src/qasm.h"
|
||||
#include "d_ifacea.h"
|
||||
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
// x86 assembly-language edge clipping and emission code
|
||||
//
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#include "../src/qasm.h"
|
||||
#include "d_ifacea.h"
|
||||
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
// x86 assembly-language edge-processing code.
|
||||
//
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#include "../src/qasm.h"
|
||||
|
||||
#if id386
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
// x86 assembly-language turbulent texture mapping code
|
||||
//
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#include "../src/qasm.h"
|
||||
#include "d_ifacea.h"
|
||||
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
// x86 assembly-language horizontal 8-bpp transparent span-drawing code.
|
||||
//
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#include "../src/qasm.h"
|
||||
|
||||
#if id386
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
// x86 assembly-language 8 bpp surface block drawing code.
|
||||
//
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#include "../src/qasm.h"
|
||||
|
||||
#if id386
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
// r_varsa.s
|
||||
//
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#include "../src/qasm.h"
|
||||
#include "d_ifacea.h"
|
||||
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
// x86 assembly-language sound code
|
||||
//
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#include "qasm.h"
|
||||
|
||||
#if id386
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
// sys_dosa.s
|
||||
// x86 assembly-language DOS-dependent routines.
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#include "../src/qasm.h"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue