[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [fluid-dev] Bug Report: -a overflow
From: |
Josh Green |
Subject: |
Re: [fluid-dev] Bug Report: -a overflow |
Date: |
Wed, 09 Feb 2005 02:02:56 -0800 |
On Wed, 2005-02-09 at 09:37 +0100, David Olofson wrote:
> On Wednesday 09 February 2005 09.00, Josh Green wrote:
> [...]
> > I was tempted to just
> > stick vsnprintf in there instead to limit the max length of error
> > output, but then recalled that this function might not be available
> > on all platforms. Can anyone confirm or deny this for platforms
> > other than Linux? (Windows and Mac OS X in particular).
>
> I'm using it in Kobo Deluxe, which runs on some 10+ platforms.
>
> However, certain confused people had this great idea of renaming it
> _vsnprintf, since it wasn't in ISO/ANSI C before C99, so:
>
> #ifndef HAVE_VSNPRINTF
> #ifndef HAVE__VSNPRINTF
> #error Must have vsnprintf() or _vsnprintf!
> #endif
> #define vsnprintf _vsnprintf
> #endif
>
> (HAVE_* stuff from GNU autoconf, but I guess you could just include
> stdio.h and stdarg.h and see if either one's defined after that, for
> other build systems.)
>
>
> //David Olofson - Programmer, Composer, Open Source Advocate
>
> .- Audiality -----------------------------------------------.
> | Free/Open Source audio engine for games and multimedia. |
> | MIDI, modular synthesis, real time effects, scripting,... |
> `-----------------------------------> http://audiality.org -'
> --- http://olofson.net --- http://www.reologica.se ---
>
>
Thanks for the info :) Cheers.
Josh Green
signature.asc
Description: This is a digitally signed message part