Fix for Linux

This commit is contained in:
s1lentq 2016-12-13 14:46:43 +06:00
parent fc73912229
commit a5fc34007d
4 changed files with 25 additions and 16 deletions

View File

@ -1,9 +1,9 @@
NAME = rechecker NAME = rechecker
COMPILER = /opt/intel/bin/icpc COMPILER = /opt/intel/bin/icpc
OBJECTS = src/main.cpp src/meta_api.cpp src/dllapi.cpp\ OBJECTS = src/main.cpp src/meta_api.cpp src/dllapi.cpp src/cmdexec.cpp \
src/cmdexec.cpp src/engine_rehlds.cpp src/h_export.cpp\ src/engine_rehlds.cpp src/h_export.cpp src/resource.cpp \
src/resource.cpp src/sdk_util.cpp public/interface.cpp src/sdk_util.cpp src/hookchains_impl.cpp src/rechecker_api_impl.cpp public/interface.cpp
LINK = -lm -ldl -static-intel -static-libgcc -no-intel-extensions LINK = -lm -ldl -static-intel -static-libgcc -no-intel-extensions

View File

@ -135,7 +135,10 @@
#define ARRAYSIZE(p) (sizeof(p)/sizeof(p[0])) #define ARRAYSIZE(p) (sizeof(p)/sizeof(p[0]))
#define _MAX_FNAME NAME_MAX #define _MAX_FNAME NAME_MAX
#define MAX_PATH 260
#ifndef MAX_PATH
#define MAX_PATH 260
#endif // MAX_PATH
typedef void *HWND; typedef void *HWND;

View File

@ -4,7 +4,7 @@ plugin_info_t Plugin_info =
{ {
META_INTERFACE_VERSION, META_INTERFACE_VERSION,
"Rechecker", "Rechecker",
"2.2", "2.3",
__DATE__, __DATE__,
"s1lent", "s1lent",
"http://www.dedicated-server.ru/", "http://www.dedicated-server.ru/",

View File

@ -1,8 +1,14 @@
#pragma once #pragma once
#ifndef _WIN32 #ifdef _WIN32 // WINDOWS
#pragma warning(disable : 4005)
#else
#define _stricmp strcasecmp #define _stricmp strcasecmp
#define _mkdir mkdir #define _mkdir mkdir
#ifdef __FUNCTION__
#undef __FUNCTION__
#endif
#define __FUNCTION__ __func__
#endif // _WIN32 #endif // _WIN32
#define MAX_PATH_LENGTH 260 #define MAX_PATH_LENGTH 260
@ -35,17 +41,17 @@
//#include "sdk_util.h" // UTIL_LogPrintf, etc //#include "sdk_util.h" // UTIL_LogPrintf, etc
#undef DLLEXPORT #undef DLLEXPORT
#ifdef _WIN32
#define DLLEXPORT __declspec(dllexport)
#define NOINLINE __declspec(noinline)
#define NORETURN __declspec(noreturn)
#else
#define DLLEXPORT __attribute__((visibility("default")))
#define NOINLINE __attribute__((noinline))
#define NORETURN __attribute__((noreturn))
#define WINAPI /* */
#endif // _WIN32
#ifdef _WIN32
#define DLLEXPORT __declspec(dllexport)
#define NOINLINE __declspec(noinline)
#define NORETURN __declspec(noreturn)
#else
#define DLLEXPORT __attribute__((visibility("default")))
#define NOINLINE __attribute__((noinline))
#define NORETURN __attribute__((noreturn))
#define WINAPI /* */
#endif // _WIN32
extern void UTIL_Printf(const char *fmt, ...); extern void UTIL_Printf(const char *fmt, ...);
extern void UTIL_LogPrintf(const char *fmt, ...); extern void UTIL_LogPrintf(const char *fmt, ...);