repo.or.cz
/
lsnes.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Various improvements and cleanups to video dumping
[lsnes.git]
/
win32-crap.cpp
blob
5784cf37069241b7a50b31c5e556333b0ce16f1a
1
#include
"win32-crap.hpp"
2
3
#if defined(_WIN32) || defined(_WIN64)
4
char
*
strdup
(
const char
*
orig
)
5
{
6
char
*
x
= (
char
*)
malloc
(
strlen
(
orig
) +
1
);
7
if
(
x
)
8
strcpy
(
x
,
orig
);
9
return
x
;
10
}
11
12
#endif