From c86059680b2b455a9462725bf49b4c080da23413 Mon Sep 17 00:00:00 2001 From: eku Date: Thu, 14 Nov 2002 08:20:50 +0000 Subject: [PATCH] NOTIME meant that the function times() is not available. Renamed into !HAVE_TIMES. --- src/jrd/perf.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/jrd/perf.h b/src/jrd/perf.h index fa568570c8..39aea5106b 100644 --- a/src/jrd/perf.h +++ b/src/jrd/perf.h @@ -31,18 +31,11 @@ #ifndef JRD_PERF_H #define JRD_PERF_H -#ifdef VMS -#define NOTIME -#endif -#if (defined (_MSC_VER) && defined (WIN32)) || (defined (__BORLANDC__) && defined (__WIN32__)) -#define NOTIME -#endif - #ifdef LINUX #include #endif -#ifndef NOTIME +#ifdef HAVE_TIMES #include #include #else @@ -66,6 +59,14 @@ struct tms { time_t tms_cstime; /* system time, children */ }; +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* !HAVE_TIMES */ + +#ifdef __cplusplus +extern "C" { #endif typedef struct perf { @@ -99,7 +100,7 @@ typedef struct perf { */ -#if defined(__cplusplus) && defined(NOTIME) +#ifdef __cplusplus } /* extern "C" */ #endif