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
This commit is contained in:
parent
d723342f30
commit
6e978472dd
1 changed files with 6 additions and 3 deletions
|
@ -45,6 +45,9 @@
|
|||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <iostream>
|
||||
#include <new>
|
||||
|
||||
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue