mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 03:33:04 +08:00
[raknet] Force 1-byte struct alignment
This commit is contained in:
@@ -21,6 +21,9 @@
|
|||||||
#include "RakNetDefines.h"
|
#include "RakNetDefines.h"
|
||||||
#include "Export.h"
|
#include "Export.h"
|
||||||
|
|
||||||
|
#pragma pack(push)
|
||||||
|
#pragma pack(1)
|
||||||
|
|
||||||
/// Forward declaration
|
/// Forward declaration
|
||||||
namespace RakNet
|
namespace RakNet
|
||||||
{
|
{
|
||||||
@@ -255,5 +258,7 @@ const int PING_TIMES_ARRAY_SIZE = 5;
|
|||||||
/// \param[in] functionName The function name
|
/// \param[in] functionName The function name
|
||||||
#define UNREGISTER_CLASS_MEMBER_RPC(networkObject, className, functionName) (networkObject)->UnregisterAsRemoteProcedureCall((#className "_" #functionName))
|
#define UNREGISTER_CLASS_MEMBER_RPC(networkObject, className, functionName) (networkObject)->UnregisterAsRemoteProcedureCall((#className "_" #functionName))
|
||||||
|
|
||||||
|
#pragma pack(pop)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user