From 6e978472dda8493c3bcac4f096e7f3c91befffd7 Mon Sep 17 00:00:00 2001 From: rich_sposato Date: Sat, 10 Oct 2009 23:09:23 +0000 Subject: [PATCH] Added include statements and changed main() declaration. git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1030 7ec92016-0320-0410-acc4-a06ded1c099a --- test/SmallObj/DefaultAlloc.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/SmallObj/DefaultAlloc.cpp b/test/SmallObj/DefaultAlloc.cpp index 855aa6d..dc774c4 100644 --- a/test/SmallObj/DefaultAlloc.cpp +++ b/test/SmallObj/DefaultAlloc.cpp @@ -45,6 +45,9 @@ // ---------------------------------------------------------------------------- +#include +#include + #include #include @@ -430,7 +433,7 @@ const char * GetGnuVersion( void ) 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 @@ void RunTests( void ) // ---------------------------------------------------------------------------- -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;