Revision: 50646
http://brlcad.svn.sourceforge.net/brlcad/?rev=50646&view=rev
Author: bob1961
Date: 2012-05-23 20:57:31 +0000 (Wed, 23 May 2012)
Log Message:
-----------
Special case for size_t on windows.
Modified Paths:
--------------
brlcad/trunk/src/libbu/sscanf.c
Modified: brlcad/trunk/src/libbu/sscanf.c
===================================================================
--- brlcad/trunk/src/libbu/sscanf.c 2012-05-23 20:56:28 UTC (rev 50645)
+++ brlcad/trunk/src/libbu/sscanf.c 2012-05-23 20:57:31 UTC (rev 50646)
@@ -242,8 +242,12 @@
#ifndef HAVE_C99_FORMAT_SPECIFIERS
/* Assume MSVC, where equivalent of %z[ouxX] is %I[ouxX]. */
bu_vls_trunc(&partFmt, bu_vls_strlen(&partFmt) - 1);
+#if defined(SIZEOF_SIZE_T) && SIZEOF_SIZE_T == 8
bu_vls_putc(&partFmt, 'I');
+#else
+ bu_vls_putc(&partFmt, 'l');
#endif
+#endif
flags |= SIZET;
goto again;
case 'L':
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits