mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- memcmp(), memcpy() and memset() now build with the GCC 2.x compatibility
header files in place. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14708 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: string_memcmp.c,v 1.1.1.1 2004-07-26 16:32:15 obarthel Exp $
|
||||
* $Id: string_memcmp.c,v 1.2 2004-08-14 10:00:33 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -154,8 +154,16 @@ __memcmp(const char *m1,const char *m2,size_t len)
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
/* This is ugly: GCC 2.95.x assumes that 'unsigned long'<27>is used in the built-in
|
||||
memcmp/memcpy/memset functions instead of 'size_t'. This can produce warnings
|
||||
where none are necessary. */
|
||||
#if defined(__GNUC__) && (__GNUC__ < 3)
|
||||
int
|
||||
memcmp(const void *ptr1, const void *ptr2, unsigned long len)
|
||||
#else
|
||||
int
|
||||
memcmp(const void *ptr1, const void *ptr2, size_t len)
|
||||
#endif /* __GNUC__ && __GNUC__ < 3 */
|
||||
{
|
||||
int result = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user