2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-01 01:25:38 +03:00

Merge pull request #126 from theAsmodai/master

Using undecorated function name macros for linux
This commit is contained in:
theAsmodai 2016-01-10 19:43:19 +03:00
commit cb59c433c7
3 changed files with 9 additions and 4 deletions

View File

@ -20,7 +20,7 @@
typedef float vec_t;
/* <42b91> ../common/mathlib.h:6 */
#ifndef DID_VEC3_T_DEFINE
#if !defined DID_VEC3_T_DEFINE && !defined vec3_t
#define DID_VEC3_T_DEFINE
typedef vec_t vec3_t[3];
#endif

View File

@ -99,9 +99,9 @@
#define MAX_UDP_PACKET 4010 // 9 bytes SPLITHEADER + 4000 payload?
// Max length of a reliable message
#define MAX_MSGLEN 3990 // 10 reserved for fragheader?
// Max length of unreliable message
#define MAX_MSGLEN 3990 // 10 reserved for fragheader?
// Max length of unreliable message
#define MAX_DATAGRAM 4000
// This is the packet payload without any header bytes (which are attached for actual sending)

View File

@ -123,6 +123,11 @@
VirtualFree(ptr, 0, MEM_RELEASE);
}
#else // _WIN32
#ifdef __FUNCTION__
#undef __FUNCTION__
#endif
#define __FUNCTION__ __func__
#ifndef PAGESIZE
#define PAGESIZE 4096
#endif