1 /* Generated by ./xlat/gen.sh from ./xlat/adjtimex_state.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(TIME_OK) || (defined(HAVE_DECL_TIME_OK) && HAVE_DECL_TIME_OK)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((TIME_OK) == (0), "TIME_OK != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define TIME_OK 0
12 #endif
13 #if defined(TIME_INS) || (defined(HAVE_DECL_TIME_INS) && HAVE_DECL_TIME_INS)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((TIME_INS) == (1), "TIME_INS != 1");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define TIME_INS 1
19 #endif
20 #if defined(TIME_DEL) || (defined(HAVE_DECL_TIME_DEL) && HAVE_DECL_TIME_DEL)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((TIME_DEL) == (2), "TIME_DEL != 2");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define TIME_DEL 2
26 #endif
27 #if defined(TIME_OOP) || (defined(HAVE_DECL_TIME_OOP) && HAVE_DECL_TIME_OOP)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((TIME_OOP) == (3), "TIME_OOP != 3");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define TIME_OOP 3
33 #endif
34 #if defined(TIME_WAIT) || (defined(HAVE_DECL_TIME_WAIT) && HAVE_DECL_TIME_WAIT)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((TIME_WAIT) == (4), "TIME_WAIT != 4");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define TIME_WAIT 4
40 #endif
41 #if defined(TIME_ERROR) || (defined(HAVE_DECL_TIME_ERROR) && HAVE_DECL_TIME_ERROR)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((TIME_ERROR) == (5), "TIME_ERROR != 5");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define TIME_ERROR 5
47 #endif
48 
49 #ifndef XLAT_MACROS_ONLY
50 
51 # ifdef IN_MPERS
52 
53 #  error static const struct xlat adjtimex_state in mpers mode
54 
55 # else
56 
57 static
58 const struct xlat adjtimex_state[] = {
59  [TIME_OK] = XLAT(TIME_OK),
60  [TIME_INS] = XLAT(TIME_INS),
61  [TIME_DEL] = XLAT(TIME_DEL),
62  [TIME_OOP] = XLAT(TIME_OOP),
63  [TIME_WAIT] = XLAT(TIME_WAIT),
64  [TIME_ERROR] = XLAT(TIME_ERROR),
65  XLAT_END
66 };
67 
68 # endif /* !IN_MPERS */
69 
70 #endif /* !XLAT_MACROS_ONLY */
71