aboutsummaryrefslogtreecommitdiff
path: root/libstdc++/cstdlib
diff options
context:
space:
mode:
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