mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-12 18:56:20 +00:00
Fix windows naming issue with assert
This commit is contained in:
@@ -6,13 +6,13 @@
|
||||
|
||||
#ifndef WIN32
|
||||
|
||||
#include <cassert>
|
||||
#include "CustomAssert.h"
|
||||
#include <cstring>
|
||||
#include <unistd.h>
|
||||
|
||||
// ZeroMemory is just a {0} or a memset(addr, 0, len), and it's a macro on MSVC
|
||||
inline void ZeroMemory(void* dst, size_t len) {
|
||||
assert(std::memset(dst, 0, len) != nullptr);
|
||||
Assert(std::memset(dst, 0, len) != nullptr);
|
||||
}
|
||||
// provides unix equivalent of closesocket call in win32
|
||||
inline void closesocket(int socket) {
|
||||
|
||||
Reference in New Issue
Block a user