|
From: <ric...@us...> - 2009-10-10 23:09:31
|
Revision: 1030
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1030&view=rev
Author: rich_sposato
Date: 2009-10-10 23:09:23 +0000 (Sat, 10 Oct 2009)
Log Message:
-----------
Added include statements and changed main() declaration.
Modified Paths:
--------------
trunk/test/SmallObj/DefaultAlloc.cpp
Modified: trunk/test/SmallObj/DefaultAlloc.cpp
===================================================================
--- trunk/test/SmallObj/DefaultAlloc.cpp 2009-10-07 00:41:02 UTC (rev 1029)
+++ trunk/test/SmallObj/DefaultAlloc.cpp 2009-10-10 23:09:23 UTC (rev 1030)
@@ -45,6 +45,9 @@
// ----------------------------------------------------------------------------
+#include <stdio.h>
+#include <string.h>
+
#include <iostream>
#include <new>
@@ -430,7 +433,7 @@
static char buffer[ 64 ];
sprintf( buffer, "GNU version %d.%d.%d", major, minor, patch );
return buffer;
-
+
#else
return "not a GNU compiler";
#endif
@@ -751,11 +754,11 @@
// ----------------------------------------------------------------------------
-int main( unsigned int argc, const char * const argv[] )
+int main( int argc, const char * const argv[] )
{
bool caught = false;
- for ( unsigned int aa = 1; aa < argc; ++aa )
+ for ( int aa = 1; aa < argc; ++aa )
{
if ( ::strcmp( argv[aa], "-v" ) == 0 )
s_verbose = true;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|