On 2009-09-13 13:27-0700 Alan W. Irwin wrote: > Therefore, I suggest following exactly what is done in plplotP.h for both > plcdemos.h and plc++demos.h. That should allow the current C and C++ > examples 19 to compile without issues on all platforms and also allows us to > replace all versions of sprintf with snprintf (which is good practice) for > all C and C++ examples. Note, with this solution plcdemos.h and plc++demos.h > should be renamed to plcdemos.h.in and plc++demos.h.in (as configuration > template files to create plcdemos.h and plc++demos.h). > > In the configuration template files, use > > #cmakedefine PL_HAVE_SNPRINTF > and > #cmakedefine _PL_HAVE_SNPRINTF > > Those will get configured to > > #ifdef PL_HAVE_SNPRINTF > and > #ifdef _PL_HAVE_SNPRINTF
I didn't state that last correctly. That should read instead, Those will get configured to #define PL_HAVE_SNPRINTF and #define _PL_HAVE_SNPRINTF if the corresponding CMake variables are true. If the corresponding CMake variables are false, than you get a configured line that is simply a comment. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered 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