summaryrefslogtreecommitdiff
path: root/soltools
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-05-07 00:25:55 +0300
committerTor Lillqvist <tml@iki.fi>2011-05-13 20:24:40 +0300
commiteaf8e0939a3d8b724dec7ff48d4ada48bbfe3ebc (patch)
treeb6c3cac34c1c8e4a88065a42362b8aa7e10a4513 /soltools
parent3a44b0d21d8d37943643330d8f9aa4152e613c8f (diff)
Some initial baby steps towards cross-compilation
And some baby steps for cross-compiling for iOS in particular.
Diffstat (limited to 'soltools')
-rw-r--r--soltools/cpp/_unix.c35
1 files changed, 0 insertions, 35 deletions
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: */