diff --git a/amxmodx/JIT/jits.o b/amxmodx/JIT/jits.o index 5f133833..a781020a 100755 Binary files a/amxmodx/JIT/jits.o and b/amxmodx/JIT/jits.o differ diff --git a/amxmodx/Makefile.pl b/amxmodx/Makefile.pl index 6ca4b70c..f10470fb 100755 --- a/amxmodx/Makefile.pl +++ b/amxmodx/Makefile.pl @@ -251,6 +251,6 @@ for ($i=0; $i<=$#CPP_SOURCE_FILES; $i++) } } -$gcc = "$gccf $cflags -shared -ldl -lm @LINK -o $outdir/$bin"; +$gcc = "$gccf $cflags -shared -ldl -lstdc++ -lm @LINK -o $outdir/$bin"; print "$gcc\n"; `$gcc`; diff --git a/amxmodx/amxmodx.h b/amxmodx/amxmodx.h index 99d08758..eeb71f55 100755 --- a/amxmodx/amxmodx.h +++ b/amxmodx/amxmodx.h @@ -33,6 +33,9 @@ #define AMXMODX_H +#ifdef __linux__ +#include +#endif #include "string.h" #include #include @@ -78,6 +81,7 @@ extern AMX_NATIVE_INFO vault_Natives[]; #define DLLOAD(path) (DLHANDLE)LoadLibrary(path) #define DLPROC(m,func) GetProcAddress(m,func) #define DLFREE(m) FreeLibrary(m) +extern int errno; #else #define DLLOAD(path) (DLHANDLE)dlopen(path, RTLD_NOW) #define DLPROC(m,func) dlsym(m,func) diff --git a/amxmodx/meta_api.cpp b/amxmodx/meta_api.cpp index a7fcdb1b..116541e2 100755 --- a/amxmodx/meta_api.cpp +++ b/amxmodx/meta_api.cpp @@ -300,7 +300,6 @@ int C_Spawn( edict_t *pent ) { (*a).getMin(),(*a).getMax(),(*a).getFilename()); } - RETURN_META_VALUE(MRES_IGNORED, 0); }