1 /* Generated by ./xlat/gen.sh from ./xlat/rename_flags.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(RENAME_NOREPLACE) || (defined(HAVE_DECL_RENAME_NOREPLACE) && HAVE_DECL_RENAME_NOREPLACE) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((RENAME_NOREPLACE) == (1), "RENAME_NOREPLACE != 1"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define RENAME_NOREPLACE 1 12 #endif 13 #if defined(RENAME_EXCHANGE) || (defined(HAVE_DECL_RENAME_EXCHANGE) && HAVE_DECL_RENAME_EXCHANGE) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((RENAME_EXCHANGE) == (2), "RENAME_EXCHANGE != 2"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define RENAME_EXCHANGE 2 19 #endif 20 #if defined(RENAME_WHITEOUT) || (defined(HAVE_DECL_RENAME_WHITEOUT) && HAVE_DECL_RENAME_WHITEOUT) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((RENAME_WHITEOUT) == (4), "RENAME_WHITEOUT != 4"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define RENAME_WHITEOUT 4 26 #endif 27 28 #ifndef XLAT_MACROS_ONLY 29 30 # ifdef IN_MPERS 31 32 # error static const struct xlat rename_flags in mpers mode 33 34 # else 35 36 static 37 const struct xlat rename_flags[] = { 38 XLAT(RENAME_NOREPLACE), 39 XLAT(RENAME_EXCHANGE), 40 XLAT(RENAME_WHITEOUT), 41 XLAT_END 42 }; 43 44 # endif /* !IN_MPERS */ 45 46 #endif /* !XLAT_MACROS_ONLY */ 47