summaryrefslogtreecommitdiffstats
path: root/contrib/libstdc++/cstdlib
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-10-04 08:12:38 +0000
committerobrien <obrien@FreeBSD.org>1999-10-04 08:12:38 +0000
commit2cef6469c5bfaca5647a9b7478a519d0de7d7b64 (patch)
treec4269807b0fce0fd2dace52f52c7fed66591d0ab /contrib/libstdc++/cstdlib
parentaa3f6dfa3a994a96f224c10d1e4959d46572798b (diff)
downloadFreeBSD-src-2cef6469c5bfaca5647a9b7478a519d0de7d7b64.zip
FreeBSD-src-2cef6469c5bfaca5647a9b7478a519d0de7d7b64.tar.gz
Virgin import of EGCS 1.1.2's libstdc++
Diffstat (limited to 'contrib/libstdc++/cstdlib')
-rw-r--r--contrib/libstdc++/cstdlib23
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/libstdc++/cstdlib b/contrib/libstdc++/cstdlib
new file mode 100644
index 0000000..e7c1a51
--- /dev/null
+++ b/contrib/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
OpenPOWER on IntegriCloud