Commit b9756850 authored by Jan Lindström's avatar Jan Lindström

Merge pull request #54 from openquery/MDEV-8053-c99-style-for-structure-members-10.1

c99 style for assigning structure members
parents bad81f23 3d801e60
...@@ -87,7 +87,7 @@ do { \ ...@@ -87,7 +87,7 @@ do { \
#if !defined __STRICT_ANSI__ && defined __GNUC__ && (__GNUC__) > 2 && \ #if !defined __STRICT_ANSI__ && defined __GNUC__ && (__GNUC__) > 2 && \
!defined __INTEL_COMPILER && !defined __clang__ !defined __INTEL_COMPILER && !defined __clang__
#define STRUCT_FLD(name, value) name: value #define STRUCT_FLD(name, value) .name = value
#else #else
#define STRUCT_FLD(name, value) value #define STRUCT_FLD(name, value) value
#endif #endif
......
...@@ -91,7 +91,7 @@ do { \ ...@@ -91,7 +91,7 @@ do { \
#if !defined __STRICT_ANSI__ && defined __GNUC__ && (__GNUC__) > 2 && \ #if !defined __STRICT_ANSI__ && defined __GNUC__ && (__GNUC__) > 2 && \
!defined __INTEL_COMPILER && !defined __clang__ !defined __INTEL_COMPILER && !defined __clang__
#define STRUCT_FLD(name, value) name: value #define STRUCT_FLD(name, value) .name = value
#else #else
#define STRUCT_FLD(name, value) value #define STRUCT_FLD(name, value) value
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment