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