From a808ce8d42ca74d270070377075de96f6dc4cee2 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Fri, 12 Jul 2013 00:24:06 +0200 Subject: [PATCH] misc_time.c: make timediff always availabe when timeb.h is found --- src/misc/misc_time.c | 4 ---- src/misc/misc_time.h | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/misc/misc_time.c b/src/misc/misc_time.c index 9df4367ce..d3f3b2f07 100644 --- a/src/misc/misc_time.c +++ b/src/misc/misc_time.c @@ -65,8 +65,6 @@ datestring(void) /* return time interval in seconds and milliseconds */ -#ifndef HAVE_GETRUSAGE -#ifndef HAVE_TIMES #ifdef HAVE_FTIME struct timeb timebegin; @@ -84,8 +82,6 @@ void timediff(struct timeb *now, struct timeb *begin, int *sec, int *msec) } -#endif -#endif #endif /* diff --git a/src/misc/misc_time.h b/src/misc/misc_time.h index 0424554a0..95cc1bcb2 100644 --- a/src/misc/misc_time.h +++ b/src/misc/misc_time.h @@ -9,16 +9,12 @@ char * datestring(void); double seconds(void); -#ifndef HAVE_GETRUSAGE -#ifndef HAVE_TIMES #ifdef HAVE_FTIME extern struct timeb timebegin; void timediff(struct timeb *, struct timeb *, int *, int *); -#endif -#endif #endif #endif