From: John Carr Date: Mon, 3 Jun 1991 12:51:12 +0000 (+0000) Subject: Declare abs and bcmp for RT. X-Git-Tag: krb5-1.0-beta1~36 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fcb528807cdf0203374c707351a74268485cf52f;p=krb5.git Declare abs and bcmp for RT. Use compiler builtin abs. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2134 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/fake-stdlib.h b/src/include/fake-stdlib.h index 2d42c08bc..35c6fc14d 100644 --- a/src/include/fake-stdlib.h +++ b/src/include/fake-stdlib.h @@ -677,6 +677,7 @@ extern void *memcpy P((void *, const void *, unsigned int)); #ifndef memset extern void *memset P((void *, int, unsigned int)); #endif +extern int bcmp P((void *, void *, unsigned int)); extern void *calloc P((unsigned int, unsigned int)); extern void *malloc P((unsigned int)); extern void *realloc P((void *, unsigned int)); @@ -689,6 +690,18 @@ extern char *getenv P((const char *)); extern double atof P((const char *)); extern int atoi P((const char *)); +#ifndef abs +extern int abs(int); +#ifdef __HIGHC__ +#define abs(x) _abs(x) +#endif +#endif + #endif /* ibm032 */ +/* Declarations valid for all machines. */ +#if !defined(abs) && defined(__GNUC__) +#define abs(x) __builtin_abs(x) +#endif + #undef P