From cb8439ae3fa94615694a479d2c57159295b06fd0 Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 2 Nov 1998 18:28:08 +0000 Subject: [PATCH] Portability updates from Bernie Bright --- compiler.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/compiler.h b/compiler.h index 744d08b1f..fbc6fb834 100644 --- a/compiler.h +++ b/compiler.h @@ -106,6 +106,7 @@ # define FG_NO_DEFAULT_TEMPLATE_ARGS # define FG_NAMESPACES # define FG_INCOMPLETE_FUNCTIONAL +# define FG_HAVE_STD #endif @@ -127,14 +128,6 @@ # define false 0 #endif -#ifdef FG_MATH_FN_IN_NAMESPACE_STD -# define FG_MATHFN_SCOPE(x) std::x -#elif defined(FG_NAMESPACES) -# define FG_MATHFN_SCOPE(x) ::x -#else -# define FG_MATHFN_SCOPE(x) x -#endif - #ifdef FG_EXPLICIT_FUNCTION_TMPL_ARGS # define FG_NULL_TMPL_ARGS <> #else @@ -153,6 +146,12 @@ # define FG_USING_NAMESPACE(X) #endif +# ifdef FG_HAVE_STD +# define FG_USING_STD(X) using std::X +# else +# define FG_USING_STD(X) +# endif + // Additional implementation from SGI STL 3.11 // Adapter function objects: pointers to member functions #ifdef FG_INCOMPLETE_FUNCTIONAL @@ -179,6 +178,9 @@ inline const_mem_fun_ref_t<_Ret,_Tp> mem_fun_ref(_Ret (_Tp::*__f)() const) #endif // _COMPILER_H // $Log$ +// Revision 1.2 1998/11/02 18:28:08 curt +// Portability updates from Bernie Bright +// // Revision 1.1 1998/10/16 00:49:04 curt // fg_stl_config.h -> compiler.h, fg_stl_config.h maintained for backwards // compatibility.