From ea4661960903a6da02d0b95a5c314eaa0d45b71d Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Fri, 14 Nov 1997 15:44:56 +0000 Subject: * toplev.c (get_run_time): Do something sensible for cygwin32. From-SVN: r16497 --- gcc/ChangeLog | 4 ++++ gcc/toplev.c | 7 +++---- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c7d4a41..5a94880 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Fri Nov 14 08:46:56 1997 Jeffrey A Law (law@cygnus.com) + + * toplev.c (get_run_time): Do something sensible for cygwin32. + Fri Nov 14 07:24:20 1997 Richard Henderson * expr.c (expand_builtin_setjmp): Set diff --git a/gcc/toplev.c b/gcc/toplev.c index aeffbb3..43b7d8a 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -35,8 +35,7 @@ Boston, MA 02111-1307, USA. */ #include #include #include - -#ifndef _WIN32 +#if !defined (_WIN32) || defined (__CYGWIN32__) #ifdef USG #undef FLOAT #include @@ -989,7 +988,7 @@ int dump_time; int get_run_time () { -#ifndef _WIN32 +#if !defined (_WIN32) || defined (__CYGWIN32__) #ifdef USG struct tms tms; #else @@ -1009,7 +1008,7 @@ get_run_time () if (quiet_flag) return 0; -#ifdef _WIN32 +#if defined (_WIN32) && !defined (__CYGWIN32__) if (clock() < 0) return 0; else -- cgit v1.1