Autor: Bob Rossi Data: Dla: Craig Silverstein CC: pcre-dev Temat: Re: [pcre-dev] 7.4-RC1 test release (doesn't build)
On Sat, Sep 15, 2007 at 12:21:15PM -0700, Craig Silverstein wrote: > } There are 2 solutions we can take. We can use the __GCC__ symbol to
> } say, "don't do this if it's gcc" or we can use _MSC_VER to say,
> } "only do this if we are visual studio cl".
>
> I think the right solution is to say '#ifdef HAVE_WINDOWS_H'. If
> you're using windows.h, you're going to get the _snprintf/etc
> definitions.
That's true, if you are going to go that far, you should probably just
check for snprintf/etc...