/* Generated by ./xlat/gen.sh from ./xlat/clocknames.in; do not edit. */

#include "gcc_compat.h"
#include "static_assert.h"

#if defined(CLOCK_REALTIME) || (defined(HAVE_DECL_CLOCK_REALTIME) && HAVE_DECL_CLOCK_REALTIME)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((CLOCK_REALTIME) == (0), "CLOCK_REALTIME != 0");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define CLOCK_REALTIME 0
#endif
#if defined(CLOCK_MONOTONIC) || (defined(HAVE_DECL_CLOCK_MONOTONIC) && HAVE_DECL_CLOCK_MONOTONIC)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((CLOCK_MONOTONIC) == (1), "CLOCK_MONOTONIC != 1");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define CLOCK_MONOTONIC 1
#endif
#if defined(CLOCK_PROCESS_CPUTIME_ID) || (defined(HAVE_DECL_CLOCK_PROCESS_CPUTIME_ID) && HAVE_DECL_CLOCK_PROCESS_CPUTIME_ID)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((CLOCK_PROCESS_CPUTIME_ID) == (2), "CLOCK_PROCESS_CPUTIME_ID != 2");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define CLOCK_PROCESS_CPUTIME_ID 2
#endif
#if defined(CLOCK_THREAD_CPUTIME_ID) || (defined(HAVE_DECL_CLOCK_THREAD_CPUTIME_ID) && HAVE_DECL_CLOCK_THREAD_CPUTIME_ID)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((CLOCK_THREAD_CPUTIME_ID) == (3), "CLOCK_THREAD_CPUTIME_ID != 3");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define CLOCK_THREAD_CPUTIME_ID 3
#endif
#if defined(CLOCK_MONOTONIC_RAW) || (defined(HAVE_DECL_CLOCK_MONOTONIC_RAW) && HAVE_DECL_CLOCK_MONOTONIC_RAW)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((CLOCK_MONOTONIC_RAW) == (4), "CLOCK_MONOTONIC_RAW != 4");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define CLOCK_MONOTONIC_RAW 4
#endif
#if defined(CLOCK_REALTIME_COARSE) || (defined(HAVE_DECL_CLOCK_REALTIME_COARSE) && HAVE_DECL_CLOCK_REALTIME_COARSE)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((CLOCK_REALTIME_COARSE) == (5), "CLOCK_REALTIME_COARSE != 5");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define CLOCK_REALTIME_COARSE 5
#endif
#if defined(CLOCK_MONOTONIC_COARSE) || (defined(HAVE_DECL_CLOCK_MONOTONIC_COARSE) && HAVE_DECL_CLOCK_MONOTONIC_COARSE)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((CLOCK_MONOTONIC_COARSE) == (6), "CLOCK_MONOTONIC_COARSE != 6");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define CLOCK_MONOTONIC_COARSE 6
#endif
#if defined(CLOCK_BOOTTIME) || (defined(HAVE_DECL_CLOCK_BOOTTIME) && HAVE_DECL_CLOCK_BOOTTIME)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((CLOCK_BOOTTIME) == (7), "CLOCK_BOOTTIME != 7");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define CLOCK_BOOTTIME 7
#endif
#if defined(CLOCK_REALTIME_ALARM) || (defined(HAVE_DECL_CLOCK_REALTIME_ALARM) && HAVE_DECL_CLOCK_REALTIME_ALARM)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((CLOCK_REALTIME_ALARM) == (8), "CLOCK_REALTIME_ALARM != 8");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define CLOCK_REALTIME_ALARM 8
#endif
#if defined(CLOCK_BOOTTIME_ALARM) || (defined(HAVE_DECL_CLOCK_BOOTTIME_ALARM) && HAVE_DECL_CLOCK_BOOTTIME_ALARM)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((CLOCK_BOOTTIME_ALARM) == (9), "CLOCK_BOOTTIME_ALARM != 9");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define CLOCK_BOOTTIME_ALARM 9
#endif
#if defined(CLOCK_SGI_CYCLE) || (defined(HAVE_DECL_CLOCK_SGI_CYCLE) && HAVE_DECL_CLOCK_SGI_CYCLE)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((CLOCK_SGI_CYCLE) == (10), "CLOCK_SGI_CYCLE != 10");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define CLOCK_SGI_CYCLE 10
#endif
#if defined(CLOCK_TAI) || (defined(HAVE_DECL_CLOCK_TAI) && HAVE_DECL_CLOCK_TAI)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((CLOCK_TAI) == (11), "CLOCK_TAI != 11");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define CLOCK_TAI 11
#endif

#ifndef XLAT_MACROS_ONLY

# ifndef IN_MPERS

static const struct xlat_data clocknames_xdata[] = {
 [CLOCK_REALTIME] = XLAT(CLOCK_REALTIME),
 [CLOCK_MONOTONIC] = XLAT(CLOCK_MONOTONIC),
 [CLOCK_PROCESS_CPUTIME_ID] = XLAT(CLOCK_PROCESS_CPUTIME_ID),
 [CLOCK_THREAD_CPUTIME_ID] = XLAT(CLOCK_THREAD_CPUTIME_ID),
 [CLOCK_MONOTONIC_RAW] = XLAT(CLOCK_MONOTONIC_RAW),
 [CLOCK_REALTIME_COARSE] = XLAT(CLOCK_REALTIME_COARSE),
 [CLOCK_MONOTONIC_COARSE] = XLAT(CLOCK_MONOTONIC_COARSE),
 [CLOCK_BOOTTIME] = XLAT(CLOCK_BOOTTIME),
 [CLOCK_REALTIME_ALARM] = XLAT(CLOCK_REALTIME_ALARM),
 [CLOCK_BOOTTIME_ALARM] = XLAT(CLOCK_BOOTTIME_ALARM),
 [CLOCK_SGI_CYCLE] = XLAT(CLOCK_SGI_CYCLE),
 [CLOCK_TAI] = XLAT(CLOCK_TAI),
};
const struct xlat clocknames[1] = { {
 .data = clocknames_xdata,
 .size = ARRAY_SIZE(clocknames_xdata),
 .type = XT_INDEXED,
} };

# endif /* !IN_MPERS */

#endif /* !XLAT_MACROS_ONLY */
