mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-27 20:55:28 +08:00
Remove abs() and labs() definitions
Confict with <stdlib.h>.
This commit is contained in:
parent
99378e229f
commit
40f2158a15
@ -70,8 +70,10 @@ static __inline u_long ulmin(u_long a, u_long b) { return (a < b ? a : b); }
|
|||||||
static __inline off_t omax(off_t a, off_t b) { return (a > b ? a : b); }
|
static __inline off_t omax(off_t a, off_t b) { return (a > b ? a : b); }
|
||||||
static __inline off_t omin(off_t a, off_t b) { return (a < b ? a : b); }
|
static __inline off_t omin(off_t a, off_t b) { return (a < b ? a : b); }
|
||||||
|
|
||||||
|
#ifndef __rtems__
|
||||||
static __inline int abs(int a) { return (a < 0 ? -a : a); }
|
static __inline int abs(int a) { return (a < 0 ? -a : a); }
|
||||||
static __inline long labs(long a) { return (a < 0 ? -a : a); }
|
static __inline long labs(long a) { return (a < 0 ? -a : a); }
|
||||||
|
#endif /* __rtems__ */
|
||||||
static __inline quad_t qabs(quad_t a) { return (a < 0 ? -a : a); }
|
static __inline quad_t qabs(quad_t a) { return (a < 0 ? -a : a); }
|
||||||
|
|
||||||
/* Prototypes for non-quad routines. */
|
/* Prototypes for non-quad routines. */
|
||||||
|
@ -99,8 +99,6 @@
|
|||||||
#define realloc _bsd_realloc
|
#define realloc _bsd_realloc
|
||||||
#define reallocf _bsd_reallocf
|
#define reallocf _bsd_reallocf
|
||||||
#define setenv _bsd_setenv
|
#define setenv _bsd_setenv
|
||||||
#define abs _bsd_abs
|
|
||||||
#define labs _bsd_labs
|
|
||||||
|
|
||||||
/* Debug */
|
/* Debug */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user