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

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

#if defined(TIME_OK) || (defined(HAVE_DECL_TIME_OK) && HAVE_DECL_TIME_OK)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((TIME_OK) == (0), "TIME_OK != 0");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define TIME_OK 0
#endif
#if defined(TIME_INS) || (defined(HAVE_DECL_TIME_INS) && HAVE_DECL_TIME_INS)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((TIME_INS) == (1), "TIME_INS != 1");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define TIME_INS 1
#endif
#if defined(TIME_DEL) || (defined(HAVE_DECL_TIME_DEL) && HAVE_DECL_TIME_DEL)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((TIME_DEL) == (2), "TIME_DEL != 2");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define TIME_DEL 2
#endif
#if defined(TIME_OOP) || (defined(HAVE_DECL_TIME_OOP) && HAVE_DECL_TIME_OOP)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((TIME_OOP) == (3), "TIME_OOP != 3");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define TIME_OOP 3
#endif
#if defined(TIME_WAIT) || (defined(HAVE_DECL_TIME_WAIT) && HAVE_DECL_TIME_WAIT)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((TIME_WAIT) == (4), "TIME_WAIT != 4");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define TIME_WAIT 4
#endif
#if defined(TIME_ERROR) || (defined(HAVE_DECL_TIME_ERROR) && HAVE_DECL_TIME_ERROR)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((TIME_ERROR) == (5), "TIME_ERROR != 5");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define TIME_ERROR 5
#endif

#ifndef XLAT_MACROS_ONLY

# ifdef IN_MPERS

#  error static const struct xlat adjtimex_state in mpers mode

# else

static
const struct xlat adjtimex_state[] = {
 [TIME_OK] = XLAT(TIME_OK),
 [TIME_INS] = XLAT(TIME_INS),
 [TIME_DEL] = XLAT(TIME_DEL),
 [TIME_OOP] = XLAT(TIME_OOP),
 [TIME_WAIT] = XLAT(TIME_WAIT),
 [TIME_ERROR] = XLAT(TIME_ERROR),
 XLAT_END
};

# endif /* !IN_MPERS */

#endif /* !XLAT_MACROS_ONLY */