RE: comment class feature; VC6 namespace bug workaround

"Kyle Schaffrick" <[email protected]> Thu, 18 Apr 2002 18:25:57 -0400
Newsgroups gmane.comp.gcc.cgicc.bugs
Message-ID <[email protected]>
Mistake in my previous post... It was just so simple, I *HAD* to screw
it up. :)

> ----------------------------
> STDNS string
> CGICCNS CgiInput::getenv(const char *varName)
> {
>   char *var = 
> // MSVC C++ 6.0 lib problem, <cstdlib> is not in std 
> namespace #if defined(_MSC_VER) && _MSC_VER < 1201 // 
> hopefully they get it right next time
>               STDNS 
> #else // don't call the member function
>                  ::
> #endif
>                     getenv(varName);
>   return (var == 0) ? "" : var;
> }
> -----------------------------

...should be...

----------------------------
STDNS string
CGICCNS CgiInput::getenv(const char *varName)
{
  char *var = 
// MSVC C++ lib problem, <cstdlib> is not in std namespace
#if defined(_MSC_VER) && (_MSC_VER < 1201) // hopefully they get it
right next time
                 :: // don't call the member function
#else 
              STDNS 
#endif
                    getenv(varName);
  return (var == 0) ? "" : var;
}
----------------------------

Sorry for the mix-up!

-- kyle