[ovs-git] [openvswitch/ovs] b201a8: compiler: Fix compilation when using VStudio 2015/...

Alin Gabriel Serdean noreply at github.com
Tue Apr 16 14:13:04 UTC 2019


  Branch: refs/heads/branch-2.9
  Home:   https://github.com/openvswitch/ovs
  Commit: b201a8d3edf70996e8fbcad88629693c3edbd538
      https://github.com/openvswitch/ovs/commit/b201a8d3edf70996e8fbcad88629693c3edbd538
  Author: Alin Gabriel Serdean <aserdean at ovn.org>
  Date:   2019-04-16 (Tue, 16 Apr 2019)

  Changed paths:
    M include/openvswitch/compiler.h

  Log Message:
  -----------
  compiler: Fix compilation when using VStudio 2015/2017

This is somewhat a regression of:
https://github.com/openvswitch/ovs/commit/27f141d44d95b4cabfd7eac47ace8d1201668b2c

The main issue using `offsetof` from <stddef.h> via the C compiler from
MSVC 2015/2017 has issues and is buggy:
https://bit.ly/2UvWwti

Until it is fixed, we define our own definition of `offsetof`.

Signed-off-by: Alin Gabriel Serdean <aserdean at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>
Acked-by: Anand Kumar <kumaranand at vmware.com>




More information about the git mailing list