aboutsummaryrefslogtreecommitdiff
path: root/libstdc++/cstdlib
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1997-08-21 22:57:35 +0000
committerJason Merrill <jason@yorick.cygnus.com>1997-08-21 22:57:35 +0000
commit544daae9b2d0c2083668aedc97de9b1cd78d859b (patch)
treea3b19970338bdae580faff126a716e1d5520400c /libstdc++/cstdlib
parent6a624df1d7255538e2f7140ffda888b1dd5ab8d2 (diff)
Initial revision
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@14877 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++/cstdlib')
-rw-r--r--libstdc++/cstdlib23
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