ugh, amd64-32 compat

This commit is contained in:
David Anderson 2005-08-02 18:37:59 +00:00
parent f2c3dfa874
commit a819a494b8
4 changed files with 7 additions and 6 deletions

View File

@ -51,3 +51,4 @@ private:
};
#endif //_INCLUDE_BINARY_H

View File

@ -5,10 +5,10 @@
OPT_FLAGS = -O3 -fno-rtti -funroll-loops -s -pipe
DEBUG_FLAGS = -g -ggdb3
CPP = gcc
CPP = g++
BINARY = amxxpc
OBJECTS = amx.cpp amxxpc.cpp
OBJECTS = amx.cpp amxxpc.cpp Binary.cpp
LINK = -lz
@ -22,7 +22,7 @@ else
CFLAGS = $(OPT_FLAGS)
endif
CFLAGS += -DLINUX -DNDEBUG -Wno-deprecated -fno-exceptions -DHAVE_STDINT_H -DAMX_ANSIONLY
CFLAGS += -DLINUX -DNDEBUG -Wno-deprecated -fexceptions -DHAVE_STDINT_H -DAMX_ANSIONLY
OBJ_LINUX := $(OBJECTS:%.cpp=$(BIN_DIR)/%.o)

View File

@ -50,7 +50,7 @@ int main(int argc, char **argv)
if (!sc32 || !pc_printf)
{
#ifdef __linux__
printf("32bit compiler failed to link: %p|%p.\n",sc32, sc_printf);
printf("32bit compiler failed to link: %p.\n",sc32);
#else
printf("32bit compiler failed to link: %d.\n", GetLastError());
#endif

View File

@ -16,7 +16,7 @@
#include <string.h>
#ifdef __linux__
# define dlmount(x) dlopen(x, RTLD_NOW)
# define dlmount(x) dlopen(x, RTLD_NOW|RTLD_GLOBAL)
typedef void* HINSTANCE;
#else
# define dlsym(x, s) GetProcAddress(x, s)