From a2be5f0c15218b0177d73b17d9bcb7589965d685 Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 1 Jun 2008 00:03:21 +0000 Subject: Reorganize the gcc vendor import work area. This flattens out a bunch of unnecessary path components that are relics of cvs2svn. (These are directory moves) --- libg++/libstdc++/std/cstdlib.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 libg++/libstdc++/std/cstdlib.h (limited to 'libg++/libstdc++/std/cstdlib.h') diff --git a/libg++/libstdc++/std/cstdlib.h b/libg++/libstdc++/std/cstdlib.h new file mode 100644 index 0000000..51dc00a --- /dev/null +++ b/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 + +#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 -- cgit v1.1