From: <arj...@us...> - 2010-01-28 08:03:26
|
Revision: 10772 http://plplot.svn.sourceforge.net/plplot/?rev=10772&view=rev Author: arjenmarkus Date: 2010-01-28 08:03:13 +0000 (Thu, 28 Jan 2010) Log Message: ----------- Replace HAVE_TCL_GT_84 by the macros TCL_MAJOR_VERSION and TCL_MINOR_VERSION from the Tcl include file. This way the definition of TclFormatInt no longer depends on the version found from tclsh. (This led to link problems if there was a discrepancy between the include files found by CMake and the Tcl shell). Note that we can simplify the configuration procedure as a consequence. Modified Paths: -------------- trunk/bindings/tcl/tclMain.c Modified: trunk/bindings/tcl/tclMain.c =================================================================== --- trunk/bindings/tcl/tclMain.c 2010-01-27 14:35:23 UTC (rev 10771) +++ trunk/bindings/tcl/tclMain.c 2010-01-28 08:03:13 UTC (rev 10772) @@ -51,7 +51,7 @@ #include <tcl.h> #include "plplot.h" -#ifdef HAVE_TCL_GT_84 +#ifdef TCL_MAJOR_VERSION >= 8 && TCL_MINOR_VERSION >= 5 /* From (private) tclInt.h in tcl8.5 */ #define TclFormatInt( buf, n ) sprintf(( buf ), "%ld", (long) ( n )) #else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |