lsnes/win32-crap.cpp
2011-09-21 02:58:15 +03:00

12 lines
190 B
C++

#include "win32-crap.hpp"
#if defined(_WIN32) || defined(_WIN64)
char* strdup(const char* orig)
{
char* x = (char*)malloc(strlen(orig) + 1);
if(x)
strcpy(x, orig);
return x;
}
#endif