2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00
Files
ovs/include/openvswitch
Shashank Ram 66bab9c9da openvswitch/types.h: Drop the member name in initializer macro
MSVC++ compiler does not allow initializing a struct while
explicitly initializing a member in the struct.

Not allowed:
    static const struct eth_addr a = {{ .ea= { 0xff, 0xff, 0xff, 0xff,
                                        0xff, 0xff }}};

Alowed:
    static const struct eth_addr b  = {{{ 0xff, 0xff, 0xff, 0xff, 0xff,
                                          0xff }}};
*An extra curly brace is required for GCC in case the struct contains
a union.

Signed-off-by: Shashank Ram <rams@vmware.com>
Tested-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
2018-01-25 10:35:23 -08:00
..
2018-01-11 11:46:11 -08:00
2018-01-11 11:46:11 -08:00
2018-01-10 15:29:13 -08:00
2018-01-11 11:46:11 -08:00
2018-01-11 15:55:03 -08:00
2018-01-10 15:29:13 -08:00
2018-01-11 11:46:11 -08:00