types: Define OVS_*128_MAX statically.
authorJoe Stringer <joe@ovn.org>
Mon, 21 Dec 2015 23:56:40 +0000 (15:56 -0800)
committerJoe Stringer <joe@ovn.org>
Tue, 22 Dec 2015 17:51:17 +0000 (09:51 -0800)
commitf3d2a2957b28b7cbd0ce00945e96de1604b49e0b
tree05ee81a22fefecc00417478f257f8540c68afc52
parentef0c5ffaa6680992b7c5c33572c68659647bd4c3
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@vmware.com>
Signed-off-by: Joe Stringer <joe@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
include/openvswitch/types.h
lib/util.h