From eaf8e0939a3d8b724dec7ff48d4ada48bbfe3ebc Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sat, 7 May 2011 00:25:55 +0300 Subject: Some initial baby steps towards cross-compilation And some baby steps for cross-compiling for iOS in particular. --- soltools/cpp/_unix.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'soltools') diff --git a/soltools/cpp/_unix.c b/soltools/cpp/_unix.c index 05eb375e2e7a..5175e48e4ebf 100644 --- a/soltools/cpp/_unix.c +++ b/soltools/cpp/_unix.c @@ -198,39 +198,4 @@ void } -/* memmove is defined here because some vendors don't provide it at - all and others do a terrible job (like calling malloc) */ - -#if !defined(__IBMC__) && !defined(_WIN32) && !defined(__GLIBC__) - -void * - memmove(void *dp, const void *sp, size_t n) -{ - unsigned char *cdp, *csp; - - if (n <= 0) - return 0; - cdp = dp; - csp = (unsigned char *) sp; - if (cdp < csp) - { - do - { - *cdp++ = *csp++; - } while (--n); - } - else - { - cdp += n; - csp += n; - do - { - *--cdp = *--csp; - } while (--n); - } - return 0; -} - -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit