mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 04:03:03 +01:00
NOTIME meant that the function times() is not available. Renamed into
!HAVE_TIMES.
This commit is contained in:
parent
9c543c3943
commit
c86059680b
@ -31,18 +31,11 @@
|
|||||||
#ifndef JRD_PERF_H
|
#ifndef JRD_PERF_H
|
||||||
#define 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
|
#ifdef LINUX
|
||||||
#include <libio.h>
|
#include <libio.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef NOTIME
|
#ifdef HAVE_TIMES
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/times.h>
|
#include <sys/times.h>
|
||||||
#else
|
#else
|
||||||
@ -66,6 +59,14 @@ struct tms {
|
|||||||
time_t tms_cstime; /* system time, children */
|
time_t tms_cstime; /* system time, children */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
} /* extern "C" */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* !HAVE_TIMES */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct perf {
|
typedef struct perf {
|
||||||
@ -99,7 +100,7 @@ typedef struct perf {
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(__cplusplus) && defined(NOTIME)
|
#ifdef __cplusplus
|
||||||
} /* extern "C" */
|
} /* extern "C" */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user