summaryrefslogtreecommitdiffstats
path: root/contrib/libg++/libstdc++/std/cstdlib.h
blob: 51dc00a5af092937debdc7d7df2eab2205d3a6f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// The -*- C++ -*- standard library header.
// This file is part of the GNU ANSI C++ Library.

#ifndef __CSTDLIB__
#define __CSTDLIB__
#include <stdlib.h>

#ifdef __GNUG__
#pragma interface "std/cstdlib.h"
#endif

extern "C++" {

#if _G_HAS_LABS
inline long   abs(long x)		{ return labs (x); }
#else
inline long   abs(long x)		{ return x >= 0 ? x : -x; }
#endif
//inline ldiv_t div(long x, long y)	{ return ldiv (x, y); }

} // extern "C++"

#endif
OpenPOWER on IntegriCloud