fixed gcc 3.4 compile errors

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3673 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2004-09-25 18:05:16 +00:00
parent 3e7c2c464d
commit 8759dcc315

View file

@ -328,6 +328,19 @@ void NSISCALL mini_memcpy(void *out, const void *in, int len)
}
}
#ifdef __GNUC__
void *memcpy(void *out, const void *in, size_t len)
{
char *c_out=(char*)out;
char *c_in=(char *)in;
while (len-- > 0)
{
*c_out++=*c_in++;
}
return out;
}
#endif
HANDLE NSISCALL myOpenFile(const char *fn, DWORD da, DWORD cd)
{