/**
 * \file   ublic/lib/include/cstdlib
 * \brief  
 *
 * \date   05/19/2004
 * \author Alexander Warg  <alexander.warg@os.inf.tu-dresden.de>
 */
/* (c) 2004 Technische Universitaet Dresden
 * This file is part of DROPS, which is distributed under the terms of the
 * GNU General Public License 2. Please see the COPYING file for details.
 */
/* -*- c++ -*- */

#ifndef CSTDLIB_INCLUDE
#define CSTDLIB_INCLUDE

extern "C" {
#include <stdlib.h>
}

namespace std {

#if(__GNUC__>=3) 

  using ::atexit;
  using ::abs;
  using ::labs;
  using ::div_t;
  //  using ::ldiv_t;
  //  using ::lldiv_t;
  using ::div;
  //  using ::ldiv;
  //  using ::lldiv;
  using ::exit;
  using ::abort;
  using ::atoi;
  using ::atol;
  using ::atof;
  using ::strtoul;
  using ::strtol;
  using ::strtod;

#endif

  inline long
  abs(long i) { return labs(i); }

  inline long long
  abs(long long i) { return llabs(i); }

#if 0
  inline ldiv_t 
  div( long i, long j ) { return ldiv(i,j); }

  inline lldiv_t 
  div( long long i, long long j ) { return lldiv(i,j); }
#endif
  
};



#endif // CSTDLIB_INCLUDE
