On 30 Dec 2009, at 23:14, Greg Ercolano wrote:
>
> BEFORE: #define SNPRINTF(SS, CC, ...) snprintf(SS, CC, _TRUNCATE,  
> __VA_ARGS__)
>  AFTER: #define SNPRINTF(SS, CC, ...) _snprintf_s(SS, CC,  
> _TRUNCATE, __VA_ARGS__)
>                                       ^^^^^^^^^^^
>
>       Gotta have that leading "_" and trailing "_s" on the name for it  
> to work,
>       as it's a different function.

Doh!  Yes - typing faster than I think, again.


>       I just tried the following with the test program on 2008 VS Express
>       and it worked correctly, eg:
>

I have used this pattern with mingw in the past and it does work.
I have no idea how widely supported C99 variadic macros are  
supported, but gcc and VS are both alleged to support them.

Where that leaves the watcom/borland/etc variants I have no idea.



_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to