diff options
| author | mrg <mrg@NetBSD.org> | 1998-03-29 08:31:49 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 1998-03-29 08:31:49 +0000 |
| commit | 1d9ec375c03e61d8a3d986cfa9e47e8060cf509a (patch) | |
| tree | d4e3449c96a7263e1e9e519c8f19a3d1cb3ea411 /gnu/dist/libstdc++/cstdlib | |
| parent | d3c5e32f1d27a9891610753a12932ae435e29ce6 (diff) | |
initial import of the egcs 1.0.2 standard c++ library
Diffstat (limited to 'gnu/dist/libstdc++/cstdlib')
| -rw-r--r-- | gnu/dist/libstdc++/cstdlib | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gnu/dist/libstdc++/cstdlib b/gnu/dist/libstdc++/cstdlib new file mode 100644 index 00000000000..e7c1a5160a5 --- /dev/null +++ b/gnu/dist/libstdc++/cstdlib @@ -0,0 +1,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 "cstdlib" +#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 |
