[ovs-git] [openvswitch/ovs] a1b515: types: Define OVS_*128_MAX statically.

GitHub noreply at github.com
Tue Dec 22 17:54:56 UTC 2015


  Branch: refs/heads/branch-2.5
  Home:   https://github.com/openvswitch/ovs
  Commit: a1b515049cd59dabe54b3b9328d275dd3ee99077
      https://github.com/openvswitch/ovs/commit/a1b515049cd59dabe54b3b9328d275dd3ee99077
  Author: Joe Stringer <joe at ovn.org>
  Date:   2015-12-22 (Tue, 22 Dec 2015)

  Changed paths:
    M include/openvswitch/types.h
    M lib/util.h

  Log Message:
  -----------
  types: Define OVS_*128_MAX statically.

The previous definitions of these variables using designated
initializers caused a variety of issues when attempting to compile with
MSVC, particularly if including these headers from C++ code. By defining
them like this, we can appease MSVC and keep the definitions the same on
all platforms.

VMware-BZ: #1517163
Suggested-by: Yin Lin <linyi at vmware.com>
Signed-off-by: Joe Stringer <joe at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list