From: curt Date: Mon, 15 Mar 1999 17:58:41 +0000 (+0000) Subject: MSVC++ portability tweaks contributed by Bernie Bright. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=79e6c529eaab0fcbb501966638c3fb5fe46701a3;p=simgear.git MSVC++ portability tweaks contributed by Bernie Bright. Added using std::ostream declaration. Added forward declarations to work around a MSVC bug. --- diff --git a/Bucket/newbucket.hxx b/Bucket/newbucket.hxx index f85bbb25..8b931b6b 100644 --- a/Bucket/newbucket.hxx +++ b/Bucket/newbucket.hxx @@ -31,9 +31,16 @@ #include STL_STRING -FG_USING_STD(string); +#ifdef FG_HAVE_STD_INCLUDES +# include // sprintf() +# include +#else +# include // sprintf() +# include +#endif -#include // sprintf() +FG_USING_STD(string); +FG_USING_STD(ostream); #include @@ -41,6 +48,9 @@ FG_USING_STD(string); #define FG_BUCKET_SPAN 0.125 // 1/8 of a degree #define FG_HALF_BUCKET_SPAN 0.0625 // 1/2 of 1/8 of a degree = 1/16 = 0.0625 +class FGBucket; +ostream& operator<< ( ostream&, const FGBucket& ); +bool operator== ( const FGBucket&, const FGBucket& ); class FGBucket { @@ -313,6 +323,11 @@ fgBucketGenIndex( const fgBUCKET& p ) // $Log$ +// Revision 1.6 1999/03/15 17:58:41 curt +// MSVC++ portability tweaks contributed by Bernie Bright. +// Added using std::ostream declaration. +// Added forward declarations to work around a MSVC bug. +// // Revision 1.5 1999/03/12 22:51:18 curt // Added some informational methods. //