From 8759dcc3154aaf2935f661826c3358dabee403d5 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 25 Sep 2004 18:05:16 +0000 Subject: [PATCH] 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 --- Source/exehead/util.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Source/exehead/util.c b/Source/exehead/util.c index 376d84c4..ef81acc1 100644 --- a/Source/exehead/util.c +++ b/Source/exehead/util.c @@ -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) {