From: Erwin Janssen Date: Mon, 9 Jan 2017 11:43:57 +0000 (+0100) Subject: Remove checks memset and memcpy from features/sfio X-Git-Tag: 2.42.0~213^2~2^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0722797b5cb5b33dc804dc15ef7942e0969194b4;p=graphviz Remove checks memset and memcpy from features/sfio Both are functions are part of the C standard and therefore always present. Checking is therefore not needed. --- diff --git a/lib/sfio/features/sfio b/lib/sfio/features/sfio index 1844ecaf7..6ef9b3091 100644 --- a/lib/sfio/features/sfio +++ b/lib/sfio/features/sfio @@ -35,8 +35,6 @@ exit cleanup note{ stuck with standard _cleanup }end execute{ lib bcopy lib bzero -lib memcpy -lib memset lib memchr note{ see if memchr is fast }end execute{ #include diff --git a/lib/sfio/sfhdr.h b/lib/sfio/sfhdr.h index eef417915..17910b372 100644 --- a/lib/sfio/sfhdr.h +++ b/lib/sfio/sfhdr.h @@ -780,14 +780,7 @@ extern "C" { #define max(x,y) ((x) > (y) ? (x) : (y)) /* fast functions for memory copy and memory clear */ -#if _lib_bcopy && !_lib_memcpy -#define memcpy(to,fr,n) bcopy((fr),(to),(n)) -#endif -#if _lib_bzero && !_lib_memset -#define memclear(s,n) bzero((s),(n)) -#else #define memclear(s,n) memset((s),'\0',(n)) -#endif /* note that MEMCPY advances the associated pointers */ #define MEMCPY(to,fr,n) \ diff --git a/windows/include/FEATURE/sfio b/windows/include/FEATURE/sfio index 92e133454..f2137b3d9 100644 --- a/windows/include/FEATURE/sfio +++ b/windows/include/FEATURE/sfio @@ -6,8 +6,6 @@ #define _lib_ftruncate 0 /* ftruncate() in default lib(s) */ #define _lib_lseek64 1 /* lseek64() in default lib(s) */ #define _typ_off64_t 1 /* off64_t is a type */ -#define _lib_memcpy 1 /* memcpy() in default lib(s) */ -#define _lib_memset 1 /* memset() in default lib(s) */ #define _sys_stat 1 /* stat() in default lib(s) */ #define _lib_remove 1 /* remove() in default lib(s) */ #define _lib_unlink 1 /* unlink() in default lib(s) */