From: <arj...@us...> - 2010-11-10 07:56:02
|
Revision: 11314 http://plplot.svn.sourceforge.net/plplot/?rev=11314&view=rev Author: arjenmarkus Date: 2010-11-10 07:55:56 +0000 (Wed, 10 Nov 2010) Log Message: ----------- Solve the problem that under Visual Studio the function plInBuildTree() did not recognise that the drive letter can be any case. This resulted in the inability of the examples to run without setting PLPLOT_DRV_DIR and PLPLOT_LIB. (The build directory and the current directory are reported with different cases for the drive letters) Modified Paths: -------------- trunk/src/plcore.c Modified: trunk/src/plcore.c =================================================================== --- trunk/src/plcore.c 2010-11-10 04:28:54 UTC (rev 11313) +++ trunk/src/plcore.c 2010-11-10 07:55:56 UTC (rev 11314) @@ -2784,7 +2784,9 @@ } else { - if ( strncmp( builddir, currdir, strlen( builddir ) ) == 0 ) + // On Windows the first character is the drive letter - it is case-insensitive + if ( strncmp( builddir+1, currdir+1, strlen( builddir+1 ) ) == 0 && + tolower( builddir[0] ) == tolower( currdir[0] ) ) { inBuildTree = 1; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |