From: curt Date: Tue, 2 Jul 2002 18:44:20 +0000 (+0000) Subject: Fixes for IA-64 with Intel compiler. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=033c66363d1842a16f3fd2924d95ff1ae55c247f;p=simgear.git Fixes for IA-64 with Intel compiler. --- diff --git a/simgear/compiler.h b/simgear/compiler.h index 7896c4a3..e80b1826 100644 --- a/simgear/compiler.h +++ b/simgear/compiler.h @@ -346,7 +346,7 @@ // // Intel C++ Compiler // -#if defined(__ICC) +#if defined(__ICC) || defined (__ECC) # define SG_NAMESPACES # define SG_HAVE_STD # define SG_HAVE_STREAMBUF diff --git a/simgear/io/sg_binobj.cxx b/simgear/io/sg_binobj.cxx index 146765c5..86c0fba2 100644 --- a/simgear/io/sg_binobj.cxx +++ b/simgear/io/sg_binobj.cxx @@ -346,11 +346,12 @@ bool SGBinObject::read_bin( const string& file ) { return false; } - // read creation time - time_t calendar_time; - sgReadLong( fp, &calendar_time ); + // read calender time + unsigned int foo_calendar_time; + sgReadUInt( fp, &foo_calendar_time ); #if 0 + time_t calendar_time = foo_calendar_time; // The following code has a global effect on the host application // and can screws up the time elsewhere. It should be avoided // unless you need this for debugging in which case you should