mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
Use _strdup instead of strdup when using msvc
This commit is contained in:
parent
29e5898c2b
commit
ef36d6cdc5
@ -37,7 +37,11 @@ void* MemoryManager::Alloc(const size_t size)
|
||||
|
||||
char* MemoryManager::Dup(const char* str)
|
||||
{
|
||||
char* result = strdup(str);
|
||||
#ifdef _MSC_VER
|
||||
auto* result = _strdup(str);
|
||||
#else
|
||||
auto* result = strdup(str);
|
||||
#endif
|
||||
m_allocations.push_back(result);
|
||||
|
||||
return result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user