mirror of
https://github.com/rodamaral/lsnes.git
synced 2025-04-02 10:42:15 -04:00
12 lines
190 B
C++
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
|