Protect strdup/memcmp from macro subsitution. Let compiler pick registers.

This commit is contained in:
Kurt Zeilenga 1998-11-18 16:13:51 +00:00
parent 3474bbaed5
commit 6d2f28c080
2 changed files with 3 additions and 3 deletions

View File

@ -6,10 +6,10 @@
* Memory Compare
*/
int
memcmp(const void *v1, const void *v2, int n)
(memcmp)(const void *v1, const void *v2, int n)
{
if (n != 0) {
register const unsigned char *s1=v1, *s2=v2;
const unsigned char *s1=v1, *s2=v2;
do {
if (*s1++ != *s2++)
return (*--s1 - *--s2);

View File

@ -6,7 +6,7 @@
#include <ac/string.h>
#include "lutil.h"
char *strdup( const char *s )
char *(strdup)( const char *s )
{
char *p;