|
From: <ai...@us...> - 2014-05-20 18:37:51
|
Revision: 13125
http://sourceforge.net/p/plplot/code/13125
Author: airwin
Date: 2014-05-20 18:37:46 +0000 (Tue, 20 May 2014)
Log Message:
-----------
Fix size_t formatting issue for Microsoft platforms.
Modified Paths:
--------------
trunk/src/plctrl.c
Modified: trunk/src/plctrl.c
===================================================================
--- trunk/src/plctrl.c 2014-05-18 22:05:54 UTC (rev 13124)
+++ trunk/src/plctrl.c 2014-05-20 18:37:46 UTC (rev 13125)
@@ -2466,7 +2466,14 @@
strcat_delim( *filespec );
strcat( *filespec, filename );
}
+#ifdef WIN32
+ // According to http://msdn.microsoft.com/en-us/library/vstudio/tcxf1dw6.aspx
+ // and also Wine tests, Microsoft does not support the c99 standard %zu
+ // format. Instead, %lu is recommended for size_t.
+ pldebug( "plGetName", "Maximum length of full pathname of file to be found is %lu\n", lfilespec - 1 );
+#else
pldebug( "plGetName", "Maximum length of full pathname of file to be found is %zu\n", lfilespec - 1 );
+#endif
pldebug( "plGetName", "Full pathname of file to be found is %s\n", *filespec );
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|