diff options
| author | No Author <no-author@gcc.gnu.org> | 1997-08-21 22:58:49 +0000 |
|---|---|---|
| committer | No Author <no-author@gcc.gnu.org> | 1997-08-21 22:58:49 +0000 |
| commit | 9d67cee02262346526bb25cbcf54750ebf134ecb (patch) | |
| tree | b5402095de45a8d16fd7dd80a4fa06b7f02a0bda /libstdc++/cstdlib | |
| parent | 2f08086dbba6a317202d4655c14984f55c84e1b0 (diff) | |
This commit was manufactured by cvs2svn to create tag 'start'.misc/start
From-SVN: r14881
Diffstat (limited to 'libstdc++/cstdlib')
| -rw-r--r-- | libstdc++/cstdlib | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libstdc++/cstdlib b/libstdc++/cstdlib new file mode 100644 index 00000000000..e7c1a5160a5 --- /dev/null +++ b/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 |
