On Fri, Sep 11, 2009 at 1:38 PM, Werner Smekal <sme...@iap.tuwien.ac.at> wrote:
> snprintf is available for MinGW/Cygwin. But not for Visual C++. The
> correct name is _snprintf which has something to do with C99 standard
> and very likely that Microsoft always had problems with standards.
> Whatever, plplot "knows" about that and I was about to get these
> macros through to the examples, but Andrew whistled me back, since the
> examples should not see private plplot macros, which is correct. So
> the most easy solution is to add something like
>
> #ifdef MSVCVER
> #define snprintf _snprintf
> #endif
>
> to solve the locally.

Should this be added to plcdemos.h, or to x19c.c directly?  Does the C++
example 19 need this as well?

Hez

-- 
Hezekiah M. Carty
Graduate Research Assistant
University of Maryland
Department of Atmospheric and Oceanic Science

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to