summaryrefslogtreecommitdiffstats
path: root/contrib/libg++/libstdc++/std/cstdlib.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-10-03 21:35:18 +0000
committerpeter <peter@FreeBSD.org>1996-10-03 21:35:18 +0000
commit7a8bb066f1347ffb7d213e84550c3a87240a4b23 (patch)
tree1cf3d19d9802c4f25728485cfa65071f3ed44457 /contrib/libg++/libstdc++/std/cstdlib.h
parentacb2bcd1679fc89c82b1ebd30a92fe0538b7f4dc (diff)
downloadFreeBSD-src-7a8bb066f1347ffb7d213e84550c3a87240a4b23.zip
FreeBSD-src-7a8bb066f1347ffb7d213e84550c3a87240a4b23.tar.gz
Import of raw libg++-2.7.2, but in a very cut-down form. There is still
a small amount of unused stuff (by the bmakefiles to follow), but it isn't much and seems harmless enough.
Diffstat (limited to 'contrib/libg++/libstdc++/std/cstdlib.h')
-rw-r--r--contrib/libg++/libstdc++/std/cstdlib.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/libg++/libstdc++/std/cstdlib.h b/contrib/libg++/libstdc++/std/cstdlib.h
new file mode 100644
index 0000000..51dc00a
--- /dev/null
+++ b/contrib/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
OpenPOWER on IntegriCloud