mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-19 10:08:04 +03:00
Merge pull request #126 from theAsmodai/master
Using undecorated function name macros for linux
This commit is contained in:
commit
cb59c433c7
@ -20,7 +20,7 @@
|
|||||||
typedef float vec_t;
|
typedef float vec_t;
|
||||||
|
|
||||||
/* <42b91> ../common/mathlib.h:6 */
|
/* <42b91> ../common/mathlib.h:6 */
|
||||||
#ifndef DID_VEC3_T_DEFINE
|
#if !defined DID_VEC3_T_DEFINE && !defined vec3_t
|
||||||
#define DID_VEC3_T_DEFINE
|
#define DID_VEC3_T_DEFINE
|
||||||
typedef vec_t vec3_t[3];
|
typedef vec_t vec3_t[3];
|
||||||
#endif
|
#endif
|
||||||
|
@ -99,9 +99,9 @@
|
|||||||
#define MAX_UDP_PACKET 4010 // 9 bytes SPLITHEADER + 4000 payload?
|
#define MAX_UDP_PACKET 4010 // 9 bytes SPLITHEADER + 4000 payload?
|
||||||
|
|
||||||
// Max length of a reliable message
|
// Max length of a reliable message
|
||||||
#define MAX_MSGLEN 3990 // 10 reserved for fragheader?
|
#define MAX_MSGLEN 3990 // 10 reserved for fragheader?
|
||||||
|
|
||||||
// Max length of unreliable message
|
// Max length of unreliable message
|
||||||
#define MAX_DATAGRAM 4000
|
#define MAX_DATAGRAM 4000
|
||||||
|
|
||||||
// This is the packet payload without any header bytes (which are attached for actual sending)
|
// This is the packet payload without any header bytes (which are attached for actual sending)
|
||||||
|
@ -123,6 +123,11 @@
|
|||||||
VirtualFree(ptr, 0, MEM_RELEASE);
|
VirtualFree(ptr, 0, MEM_RELEASE);
|
||||||
}
|
}
|
||||||
#else // _WIN32
|
#else // _WIN32
|
||||||
|
#ifdef __FUNCTION__
|
||||||
|
#undef __FUNCTION__
|
||||||
|
#endif
|
||||||
|
#define __FUNCTION__ __func__
|
||||||
|
|
||||||
#ifndef PAGESIZE
|
#ifndef PAGESIZE
|
||||||
#define PAGESIZE 4096
|
#define PAGESIZE 4096
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user