Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80878 - trunk/libs/test/test
From: steven_at_[hidden]
Date: 2012-10-05 15:53:10


Author: steven_watanabe
Date: 2012-10-05 15:53:09 EDT (Fri, 05 Oct 2012)
New Revision: 80878
URL: http://svn.boost.org/trac/boost/changeset/80878

Log:
xlc says: printf not found.
Text files modified:
   trunk/libs/test/test/prg_exec_fail2.cpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/libs/test/test/prg_exec_fail2.cpp
==============================================================================
--- trunk/libs/test/test/prg_exec_fail2.cpp (original)
+++ trunk/libs/test/test/prg_exec_fail2.cpp 2012-10-05 15:53:09 EDT (Fri, 05 Oct 2012)
@@ -26,11 +26,12 @@
 #include <cstddef> //Metrowerks linker needs at least one standard library
 #endif
 
+#include <cstdio>
 
 int cpp_main( int, char *[] ) // note the name
 {
 #if (defined(APPLE) && defined(ppc)) || defined(_ARCH_PPC)
- printf("The ppc doesn't throw on divide-by-zero. No check.\n");
+ std::printf("The ppc doesn't throw on divide-by-zero. No check.\n");
     return 1;
 #else
     int div = 0;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk