diff options
author | Alin Gabriel Serdean <aserdean@ovn.org> | 2017-11-01 19:19:07 +0200 |
---|---|---|
committer | Alin Gabriel Serdean <aserdean@ovn.org> | 2017-11-14 05:46:10 +0200 |
commit | 27f141d44d95b4cabfd7eac47ace8d1201668b2c (patch) | |
tree | 0edfd5c949493e8340ef62b827b3ca90c9e7ab04 /windows/automake.mk | |
parent | 2b3f8b6e238604ddaf9c0f964080e257968a2478 (diff) | |
download | openvswitch-27f141d44d95b4cabfd7eac47ace8d1201668b2c.tar.gz |
ofp-actions: Add compare to offsetof need for MSVC 2015/17
Unfortunately starting from VS 2015, the "C" definition for `offsetof`
has been changed. Please see:
https://stackoverflow.com/questions/42725929/using-offsetof-with-enum-does-not-compile-in-visual-studio-2015/42726424
Several people reported the bug for 2015 and also 2017 (i.e. :
https://developercommunity.visualstudio.com/content/problem/22196/static-assert-cannot-compile-constexprs-method-tha.html
), but we don't have a fix yet.
This patch adds an explicit compare, although we could redefine the macro
for the same effect.
Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
Acked-by: Anand Kumar <kumaranand@vmware.com>
Diffstat (limited to 'windows/automake.mk')
0 files changed, 0 insertions, 0 deletions