1 /* Generated by ./xlat/gen.sh from ./xlat/evdev_ff_status.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(FF_STATUS_STOPPED) || (defined(HAVE_DECL_FF_STATUS_STOPPED) && HAVE_DECL_FF_STATUS_STOPPED) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((FF_STATUS_STOPPED) == (0x00), "FF_STATUS_STOPPED != 0x00"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define FF_STATUS_STOPPED 0x00 12 #endif 13 #if defined(FF_STATUS_PLAYING) || (defined(HAVE_DECL_FF_STATUS_PLAYING) && HAVE_DECL_FF_STATUS_PLAYING) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((FF_STATUS_PLAYING) == (0x01), "FF_STATUS_PLAYING != 0x01"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define FF_STATUS_PLAYING 0x01 19 #endif 20 21 #ifndef XLAT_MACROS_ONLY 22 23 # ifdef IN_MPERS 24 25 # error static const struct xlat evdev_ff_status in mpers mode 26 27 # else 28 29 static 30 const struct xlat evdev_ff_status[] = { 31 [FF_STATUS_STOPPED] = XLAT(FF_STATUS_STOPPED), 32 [FF_STATUS_PLAYING] = XLAT(FF_STATUS_PLAYING), 33 XLAT_END 34 }; 35 36 # endif /* !IN_MPERS */ 37 38 #endif /* !XLAT_MACROS_ONLY */ 39