ayttm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ayttm-devel] buffer checks


From: Andy
Subject: Re: [Ayttm-devel] buffer checks
Date: Wed, 26 Mar 2003 08:25:34 -0100
User-agent: KMail/1.4.3

On Tuesday 25 March 2003 23:55, Edward L. Haletky wrote:
> Hi,
>
> When using snprintf perhaps you could use g_snprintf instead as snprintf
> does not exist on windows. Most of the re-porting effort was to put in
> #ifdefs for this.

In my, uh, 'real work', I compile for Windows and Linux and I use the 
following in a global header file GlobalDefs.h:

#ifdef WIN32
        #ifndef snprintf
                #define snprintf        _snprintf
        #endif

        #ifndef vsnprintf
                #define vsnprintf       _vsnprintf
        #endif
#endif

Just an alternate suggestion so we can avoid using g_sprintf [since we are 
trying to get rid of glib dependence].

Andy




reply via email to

[Prev in Thread] Current Thread [Next in Thread]