File tree Expand file tree Collapse file tree 5 files changed +15
-4
lines changed
mysql-test/suite/innodb/t Expand file tree Collapse file tree 5 files changed +15
-4
lines changed Original file line number Diff line number Diff line change
1
+ --source include/not_embedded.inc
1
2
2
3
select * from information_schema.innodb_trx;
3
4
select * from information_schema.innodb_locks;
Original file line number Diff line number Diff line change @@ -210,6 +210,8 @@ IF(HAVE_IB_ATOMIC_PTHREAD_T_GCC)
210
210
ADD_DEFINITIONS (-DHAVE_IB_ATOMIC_PTHREAD_T_GCC=1 )
211
211
ENDIF ()
212
212
213
+ CHECK_C_SOURCE_COMPILES ("struct t1{ int a; char *b; }; struct t1 c= { .a=1, .b=0 }; main() { }" HAVE_C99_INITIALIZERS )
214
+
213
215
ENDIF (NOT MSVC )
214
216
215
217
CHECK_FUNCTION_EXISTS (asprintf HAVE_ASPRINTF )
Original file line number Diff line number Diff line change @@ -85,10 +85,13 @@ do { \
85
85
} \
86
86
} while (0)
87
87
88
- #if !defined __STRICT_ANSI__ && defined __GNUC__ && (__GNUC__ ) > 2 && \
89
- !defined __INTEL_COMPILER && !defined __clang__
88
+ #if !defined __STRICT_ANSI__ && defined __GNUC__ && (__GNUC__ ) > 2 && !defined __INTEL_COMPILER && !defined __clang__
89
+ #ifdef HAVE_C99_INITIALIZERS
90
90
#define STRUCT_FLD (name , value ) .name = value
91
91
#else
92
+ #define STRUCT_FLD (name , value ) name: value
93
+ #endif /* HAVE_C99_INITIALIZERS */
94
+ #else
92
95
#define STRUCT_FLD (name , value ) value
93
96
#endif
94
97
Original file line number Diff line number Diff line change @@ -219,6 +219,8 @@ IF(HAVE_IB_ATOMIC_PTHREAD_T_GCC)
219
219
ADD_DEFINITIONS (-DHAVE_IB_ATOMIC_PTHREAD_T_GCC=1 )
220
220
ENDIF ()
221
221
222
+ CHECK_C_SOURCE_COMPILES ("struct t1{ int a; char *b; }; struct t1 c= { .a=1, .b=0 }; main() { }" HAVE_C99_INITIALIZERS )
223
+
222
224
ENDIF (NOT MSVC )
223
225
224
226
CHECK_FUNCTION_EXISTS (asprintf HAVE_ASPRINTF )
Original file line number Diff line number Diff line change @@ -89,10 +89,13 @@ do { \
89
89
} \
90
90
} while (0)
91
91
92
- #if !defined __STRICT_ANSI__ && defined __GNUC__ && (__GNUC__ ) > 2 && \
93
- !defined __INTEL_COMPILER && !defined __clang__
92
+ #if !defined __STRICT_ANSI__ && defined __GNUC__ && (__GNUC__ ) > 2 && !defined __INTEL_COMPILER && !defined __clang__
93
+ #ifdef HAVE_C99_INITIALIZERS
94
94
#define STRUCT_FLD (name , value ) .name = value
95
95
#else
96
+ #define STRUCT_FLD (name , value ) name: value
97
+ #endif /* HAVE_C99_INITIALIZERS */
98
+ #else
96
99
#define STRUCT_FLD (name , value ) value
97
100
#endif
98
101
You can’t perform that action at this time.
0 commit comments