mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-11 07:18:11 -05:00
Make compilation process compatible to linux on gcc
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <utility>
|
||||
|
||||
#define STR(x) #x
|
||||
|
||||
#if defined(_MSVC_LANG)
|
||||
|
@ -1,5 +1,8 @@
|
||||
#include "MemoryManager.h"
|
||||
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
|
||||
MemoryManager::AllocationInfo::AllocationInfo(IDestructible* data, void* dataPtr)
|
||||
{
|
||||
m_data = data;
|
||||
@ -34,7 +37,7 @@ void* MemoryManager::Alloc(const size_t size)
|
||||
|
||||
char* MemoryManager::Dup(const char* str)
|
||||
{
|
||||
char* result = _strdup(str);
|
||||
char* result = strdup(str);
|
||||
m_allocations.push_back(result);
|
||||
|
||||
return result;
|
||||
@ -51,4 +54,4 @@ void MemoryManager::Delete(void* data)
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user