From c3f255e38a077ac61bed4e2a1cec41ea05ca26a0 Mon Sep 17 00:00:00 2001 From: ludwig Date: Tue, 30 Aug 2005 20:30:17 +0000 Subject: support for 64bit native mods git-svn-id: svn://svn.icculus.org/quake3/trunk@34 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/unix/Makefile | 1 + code/unix/unix_main.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'code/unix') diff --git a/code/unix/Makefile b/code/unix/Makefile index 2e4dafc..925cf07 100644 --- a/code/unix/Makefile +++ b/code/unix/Makefile @@ -130,6 +130,7 @@ ifeq ($(PLATFORM),linux) OPTIMIZE = -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fno-strict-aliasing ifeq ($(ARCH),x86_64) OPTIMIZE = -O3 -fomit-frame-pointer -ffast-math -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fstrength-reduce -fno-strict-aliasing + BASE_CFLAGS += -DHAVE_VM_NATIVE else ifeq ($(ARCH),i386) OPTIMIZE = -O3 -march=i686 -fomit-frame-pointer -ffast-math -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing -fstrength-reduce diff --git a/code/unix/unix_main.c b/code/unix/unix_main.c index a00bc43..df64f38 100644 --- a/code/unix/unix_main.c +++ b/code/unix/unix_main.c @@ -708,11 +708,11 @@ changed the load procedure to match VFS logic, and allow developer use extern char *FS_BuildOSPath( const char *base, const char *game, const char *qpath ); void *Sys_LoadDll( const char *name, char *fqpath , - int (**entryPoint)(int, ...), - int (*systemcalls)(int, ...) ) + long (**entryPoint)(long, ...), + long (*systemcalls)(long, ...) ) { void *libHandle; - void (*dllEntry)( int (*syscallptr)(int, ...) ); + void (*dllEntry)( long (*syscallptr)(long, ...) ); char curpath[MAX_OSPATH]; char fname[MAX_OSPATH]; char *basepath; -- cgit v1.2.3