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

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

#if defined(POLL_IN) || (defined(HAVE_DECL_POLL_IN) && HAVE_DECL_POLL_IN)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((POLL_IN) == (1), "POLL_IN != 1");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define POLL_IN 1
#endif
#if defined(POLL_OUT) || (defined(HAVE_DECL_POLL_OUT) && HAVE_DECL_POLL_OUT)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((POLL_OUT) == (2), "POLL_OUT != 2");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define POLL_OUT 2
#endif
#if defined(POLL_MSG) || (defined(HAVE_DECL_POLL_MSG) && HAVE_DECL_POLL_MSG)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((POLL_MSG) == (3), "POLL_MSG != 3");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define POLL_MSG 3
#endif
#if defined(POLL_ERR) || (defined(HAVE_DECL_POLL_ERR) && HAVE_DECL_POLL_ERR)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((POLL_ERR) == (4), "POLL_ERR != 4");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define POLL_ERR 4
#endif
#if defined(POLL_PRI) || (defined(HAVE_DECL_POLL_PRI) && HAVE_DECL_POLL_PRI)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((POLL_PRI) == (5), "POLL_PRI != 5");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define POLL_PRI 5
#endif
#if defined(POLL_HUP) || (defined(HAVE_DECL_POLL_HUP) && HAVE_DECL_POLL_HUP)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((POLL_HUP) == (6), "POLL_HUP != 6");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define POLL_HUP 6
#endif

#ifndef XLAT_MACROS_ONLY

# ifdef IN_MPERS

extern const struct xlat sigpoll_codes[];

# else

static const struct xlat_data sigpoll_codes_xdata[] = {
 [POLL_IN] = XLAT(POLL_IN),
 [POLL_OUT] = XLAT(POLL_OUT),
 [POLL_MSG] = XLAT(POLL_MSG),
 [POLL_ERR] = XLAT(POLL_ERR),
 [POLL_PRI] = XLAT(POLL_PRI),
 [POLL_HUP] = XLAT(POLL_HUP),
};
#  if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS)
static
#  endif
const struct xlat sigpoll_codes[1] = { {
 .data = sigpoll_codes_xdata,
 .size = ARRAY_SIZE(sigpoll_codes_xdata),
 .type = XT_INDEXED,
} };

# endif /* !IN_MPERS */

#endif /* !XLAT_MACROS_ONLY */
