Changeset 40f2158a in rtems-libbsd


Ignore:
Timestamp:
Oct 24, 2013, 8:36:52 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
6cdf009
Parents:
99378e2
git-author:
Sebastian Huber <sebastian.huber@…> (10/24/13 08:36:52)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/31/13 12:18:50)
Message:

Remove abs() and labs() definitions

Confict with <stdlib.h>.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/sys/libkern.h

    r99378e2 r40f2158a  
    7171static __inline off_t omin(off_t a, off_t b) { return (a < b ? a : b); }
    7272
     73#ifndef __rtems__
    7374static __inline int abs(int a) { return (a < 0 ? -a : a); }
    7475static __inline long labs(long a) { return (a < 0 ? -a : a); }
     76#endif /* __rtems__ */
    7577static __inline quad_t qabs(quad_t a) { return (a < 0 ? -a : a); }
    7678
  • rtemsbsd/include/machine/rtems-bsd-config.h.in

    r99378e2 r40f2158a  
    100100#define reallocf _bsd_reallocf
    101101#define setenv _bsd_setenv
    102 #define abs _bsd_abs
    103 #define labs _bsd_labs
    104102
    105103/* Debug */
Note: See TracChangeset for help on using the changeset viewer.