summaryrefslogtreecommitdiff
path: root/gnu/lib/libg++/libstdc++/std/cstdlib.h
diff options
context:
space:
mode:
authorphil <phil@NetBSD.org>1996-03-09 00:00:51 +0000
committerphil <phil@NetBSD.org>1996-03-09 00:00:51 +0000
commit357744cd54478d5d74cb52cd1459eb7c26192abd (patch)
tree32a89fdf6e6be53376907dd269e63ad8a9584a79 /gnu/lib/libg++/libstdc++/std/cstdlib.h
parent2c11ad408cd834f9e23a25702550639628396204 (diff)
Import of libg++-2.7.1.
Diffstat (limited to 'gnu/lib/libg++/libstdc++/std/cstdlib.h')
-rw-r--r--gnu/lib/libg++/libstdc++/std/cstdlib.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/gnu/lib/libg++/libstdc++/std/cstdlib.h b/gnu/lib/libg++/libstdc++/std/cstdlib.h
new file mode 100644
index 00000000000..51dc00a5af0
--- /dev/null
+++ b/gnu/lib/libg++/libstdc++/std/cstdlib.h
@@ -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 "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