Fixed applied.  The fix will appear in the next DBDpg release, 1.22.

---------------------------------------------------------------------------

Joe Spears wrote:
> #ifdef Win32 should be fine....
> 
> Thanks. I am making an open source project available to some win32 users
> after working on it on FreeBSD and Linux for some time....
> 
> >
> > Yep, I remember the libpq change now, and I remember being confused it
> > was needed at that time too.  :-)
> >
> > OK, what define should we check for to enable this, WIN32?
> >
> > ---------------------------------------------------------------------------
> >
> > Joe Spears wrote:
> >> Following the instuctions for Dbd-Pg (using Visual Studio C++ v6.0)
> >> The function snprintf is not global. According to the microsoft
> >> website, the function in their libraries is _snprintf.
> >>
> >> I found this one liner fix while compiling libpg.dll (the
> >> prerequisite).
> >>
> >> I haven't tried this with Visual Studio .NET, but I figured that since
> >> your instructions specify version 6.0 of the compiler, I would give
> >> you this little fix.
> >>
> >>
> >> Joe
> >> > Joe Spears wrote:
> >> >> I added #define snprintf _snprintf to dbdimp.h to fix a linker
> >> error.
> >> >>
> >> >> Please make the change in Dbd-Pg-1.21... this one liner gave me a
> >> headache (I HATE windows)
> >> >>
> >> >
> >> > Joe, can you explain why snprintf doesn't work on Windows.  Isn't is
> >> globally visible?  Is that underline required?  I thought snprintf
> >> was common even on Windows.
> >> >
> >> > --
> >> >   Bruce Momjian                        |  http://candle.pha.pa.us
> >> [EMAIL PROTECTED]               |  (610) 359-1001
> >> >   +  If your life is a hard drive,     |  13 Roberts Road
> >> >   +  Christ can be your backup.        |  Newtown Square,
> >> Pennsylvania
> >> > 19073
> >>
> >>
> >> --
> >> Affirmation of Humility - I am no better than anyone... and because of
> >> this, I am better than everyone.
> >>
> >>
> >>
> >
> > --
> >   Bruce Momjian                        |  http://candle.pha.pa.us
> >   [EMAIL PROTECTED]               |  (610) 359-1001
> >   +  If your life is a hard drive,     |  13 Roberts Road
> >   +  Christ can be your backup.        |  Newtown Square, Pennsylvania
> > 19073
> 
> 
> -- 
> Affirmation of Humility - I am no better than anyone... and because of
> this, I am better than everyone.
> 
> 
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  [EMAIL PROTECTED]               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Reply via email to