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

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

#if defined(USRQUOTA) || (defined(HAVE_DECL_USRQUOTA) && HAVE_DECL_USRQUOTA)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((USRQUOTA) == (0), "USRQUOTA != 0");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define USRQUOTA 0
#endif
#if defined(GRPQUOTA) || (defined(HAVE_DECL_GRPQUOTA) && HAVE_DECL_GRPQUOTA)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((GRPQUOTA) == (1), "GRPQUOTA != 1");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define GRPQUOTA 1
#endif
#if defined(PRJQUOTA) || (defined(HAVE_DECL_PRJQUOTA) && HAVE_DECL_PRJQUOTA)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((PRJQUOTA) == (2), "PRJQUOTA != 2");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define PRJQUOTA 2
#endif

#ifndef XLAT_MACROS_ONLY

# ifdef IN_MPERS

#  error static const struct xlat quotatypes in mpers mode

# else

static const struct xlat_data quotatypes_xdata[] = {
 [USRQUOTA] = XLAT(USRQUOTA),
 [GRPQUOTA] = XLAT(GRPQUOTA),
 [PRJQUOTA] = XLAT(PRJQUOTA),
};
static
const struct xlat quotatypes[1] = { {
 .data = quotatypes_xdata,
 .size = ARRAY_SIZE(quotatypes_xdata),
 .type = XT_INDEXED,
} };

# endif /* !IN_MPERS */

#endif /* !XLAT_MACROS_ONLY */
