diff options
Diffstat (limited to 'idlc/source/preproc/unix.c')
-rw-r--r-- | idlc/source/preproc/unix.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/idlc/source/preproc/unix.c b/idlc/source/preproc/unix.c index b0a8f478ace3..461f1d5db34d 100644 --- a/idlc/source/preproc/unix.c +++ b/idlc/source/preproc/unix.c @@ -212,40 +212,4 @@ void setsource(fp, -1, fd, NULL, 0); } - -/* 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(WNT) && !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: */ |