From: Howard Chu Date: Mon, 15 Aug 2011 03:12:20 +0000 (-0700) Subject: Get rid of AC_MEMCPY X-Git-Tag: OPENLDAP_REL_ENG_2_4_27~148^2~101 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5ef6c43acfb64f86efb6c6b08e95552743140ddc;p=openldap Get rid of AC_MEMCPY --- diff --git a/libraries/libmdb/midl.h b/libraries/libmdb/midl.h index 479545f404..31a4b67bd2 100644 --- a/libraries/libmdb/midl.h +++ b/libraries/libmdb/midl.h @@ -17,8 +17,6 @@ #ifndef _MDB_MIDL_H_ #define _MDB_MIDL_H_ -#define AC_MEMCPY(dst,src,size) memmove(dst,src,size) - #define ID unsigned long #define NOID ((ID)~0) @@ -61,7 +59,7 @@ #define MDB_IDL_IS_ALL( range, ids ) ( (ids)[0] == NOID \ && (ids)[1] <= (range)[1] && (range)[2] <= (ids)[2] ) -#define MDB_IDL_CPY( dst, src ) (AC_MEMCPY( dst, src, MDB_IDL_SIZEOF( src ) )) +#define MDB_IDL_CPY( dst, src ) (memcpy( dst, src, MDB_IDL_SIZEOF( src ) )) #define MDB_IDL_ID( bdb, ids, id ) MDB_IDL_RANGE( ids, id, ((bdb)->bi_lastid) ) #define MDB_IDL_ALL( bdb, ids ) MDB_IDL_RANGE( ids, 1, ((bdb)->bi_lastid) )