Re: [ovs-dev] [PATCH 2/7] MSVC 64 bit compile error

2015-09-28 Thread Ben Pfaff
On Wed, Sep 23, 2015 at 07:54:04AM -0700, Gurucharan Shetty wrote: > On Tue, Sep 22, 2015 at 12:53 PM, Alin Serdean > wrote: > > MSVC does not support zero-size array unless it is the last member of > > a defined structure. > > > > The error is hit only on MSVC 64 bit because the size of > > uint6

Re: [ovs-dev] [PATCH 2/7] MSVC 64 bit compile error

2015-09-23 Thread Gurucharan Shetty
On Tue, Sep 22, 2015 at 12:53 PM, Alin Serdean wrote: > MSVC does not support zero-size array unless it is the last member of > a defined structure. > > The error is hit only on MSVC 64 bit because the size of > uint64_t is equal with sizeof(struct tun_table *). > > This patch ifdef's out the pad

[ovs-dev] [PATCH 2/7] MSVC 64 bit compile error

2015-09-22 Thread Alin Serdean
MSVC does not support zero-size array unless it is the last member of a defined structure. The error is hit only on MSVC 64 bit because the size of uint64_t is equal with sizeof(struct tun_table *). This patch ifdef's out the pad member of the structure tun_metadata in case we are on the MSVC 64