summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/shadow/float.h
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/shadow/float.h')
-rw-r--r--libstdc++-v3/shadow/float.h28
1 files changed, 22 insertions, 6 deletions
diff --git a/libstdc++-v3/shadow/float.h b/libstdc++-v3/shadow/float.h
index 5d2cca9d65c..f52c5f5c9eb 100644
--- a/libstdc++-v3/shadow/float.h
+++ b/libstdc++-v3/shadow/float.h
@@ -1,6 +1,6 @@
// -*- C++ -*- header wrapper.
-// Copyright (C) 1997-1999 Free Software Foundation, Inc.
+// Copyright (C) 1997-1999, 2000 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -28,11 +28,27 @@
// the GNU General Public License.
-
#ifndef _INCLUDED_CPP_FLOAT_H_
# define _INCLUDED_CPP_FLOAT_H_ 1
-# undef _SHADOW_NAME
-# define _SHADOW_NAME <cfloat>
-# include <bits/generic_shadow.h>
-# undef _SHADOW_NAME
+
+# ifdef _IN_C_LEGACY_ /* sub-included by a C header */
+ // get out of the "legacy"
+ } // close extern "C"
+ } // close namespace _C_legacy::
+# undef _IN_C_LEGACY_
+# define _FLOAT_NEED_C_LEGACY_
+# endif
+
+# include <cfloat>
+
+ // Expose global C names, including non-standard ones, but shadow
+ // some names and types with the std:: C++ version.
+
+# ifdef _FLOAT_NEED_C_LEGACY_
+ // dive back into the "swamp"
+ namespace _C_legacy {
+ extern "C" {
+# define _IN_C_LEGACY_
+# undef _FLOAT_NEED_C_LEGACY_
+# endif /* _FLOAT_NEED_C_LEGACY_ */
#endif /* _INCLUDED_CPP_FLOAT_H_ */
OpenPOWER on IntegriCloud