diff options
author | Mumit Khan <khan@xraylith.wisc.edu> | 1999-02-02 23:05:16 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-02-02 16:05:16 -0700 |
commit | b207e09ce50861a5ad20df036339beeb90eac189 (patch) | |
tree | c28698afc4fc5a6f1c16183fbbeedd10855eb73d /libiberty/clock.c | |
parent | c79d14839713912e676d1bd3269886f2dc851404 (diff) | |
download | gcc-b207e09ce50861a5ad20df036339beeb90eac189.zip gcc-b207e09ce50861a5ad20df036339beeb90eac189.tar.gz gcc-b207e09ce50861a5ad20df036339beeb90eac189.tar.bz2 |
clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on platforms that don't have HZ.
* clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
platforms that don't have HZ.
* getruntime.c (HZ): Likewise.
From-SVN: r24993
Diffstat (limited to 'libiberty/clock.c')
-rw-r--r-- | libiberty/clock.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libiberty/clock.c b/libiberty/clock.c index b204566..8d26540 100644 --- a/libiberty/clock.c +++ b/libiberty/clock.c @@ -1,5 +1,5 @@ /* ANSI-compatible clock function. - Copyright (C) 1994, 1995 Free Software Foundation, Inc. + Copyright (C) 1994, 1995, 1999 Free Software Foundation, Inc. This file is part of the libiberty library. This library is free software; you can redistribute it and/or modify it under the @@ -36,6 +36,10 @@ the executable file might be covered by the GNU General Public License. */ #include <sys/times.h> #endif +#if defined (HAVE_TIMES) && ! defined (HZ) && defined (CLOCKS_PER_SEC) +#define HZ CLOCKS_PER_SEC +#endif + /* FIXME: should be able to declare as clock_t. */ long |