home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / libg++-2.7.1-bin.lha / lib / g++-include / std / cstdlib.h < prev    next >
C/C++ Source or Header  |  1996-10-12  |  449b  |  24 lines

  1. // The -*- C++ -*- standard library header.
  2. // This file is part of the GNU ANSI C++ Library.
  3.  
  4. #ifndef __CSTDLIB__
  5. #define __CSTDLIB__
  6. #include <stdlib.h>
  7.  
  8. #ifdef __GNUG__
  9. #pragma interface "std/cstdlib.h"
  10. #endif
  11.  
  12. extern "C++" {
  13.  
  14. #if _G_HAS_LABS
  15. inline long   abs(long x)        { return labs (x); }
  16. #else
  17. inline long   abs(long x)        { return x >= 0 ? x : -x; }
  18. #endif
  19. //inline ldiv_t div(long x, long y)    { return ldiv (x, y); }
  20.  
  21. } // extern "C++"
  22.  
  23. #endif
  24.