Disable functions missing in MinGW

This commit is contained in:
Adam Ierymenko 2020-07-02 11:52:20 -07:00
parent bd0299f392
commit e7ccd74a9e
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3

View file

@ -103,7 +103,7 @@ extern const uint64_t s_mapNonce;
static ZT_INLINE void memoryLock(const void *const p, const unsigned int l) noexcept static ZT_INLINE void memoryLock(const void *const p, const unsigned int l) noexcept
{ {
#ifdef __WINDOWS__ #ifdef __WINDOWS__
VirtualLock(p, l); //VirtualLock(p, l);
#else #else
mlock(p, l); mlock(p, l);
#endif #endif
@ -118,7 +118,7 @@ static ZT_INLINE void memoryLock(const void *const p, const unsigned int l) noex
static ZT_INLINE void memoryUnlock(const void *const p, const unsigned int l) noexcept static ZT_INLINE void memoryUnlock(const void *const p, const unsigned int l) noexcept
{ {
#ifdef __WINDOWS__ #ifdef __WINDOWS__
VirtualUnlock(p, l); //VirtualUnlock(p, l);
#else #else
munlock(p, l); munlock(p, l);
#endif #endif