Get rid of AC_MEMCPY

vmware
Howard Chu 13 years ago
parent 1aa5105b67
commit 5ef6c43acf
  1. 4
      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) )

Loading…
Cancel
Save