I've not met an MSVC compiler that hasn't implemented {0} correctly.
Perhaps it's the comma Xcode doesn't like: {0,} and {0} would be OK.
(Assuming the comma in the original post wasn't a typo.)
I haven't compiled libusb(x) on the Mac since I got forced into installing
Xcode 5... I'll give it a try today if I remember.
On Tue, Jan 21, 2014 at 9:50 AM, Tim Roberts <t...@probo.com> wrote:
> Tim Roberts wrote:
> > Nathan Hjelm wrote:
> >>
> >> Ah. Ok. Wasn't aware of that case. The code is question is ISO C89 to
> >> support MSVC. Do you know if the C89 standard also guarantees the rest
> >> of the struct is zeroed?
> > Yes. That C99 wording was copied from the C89 spec, section 3.5.7.
>
> HAVING SAID ALL OF THAT, however, I don't actually have an objection to
> the modification. It serves no purpose to the compilation, but if it
> satisfies an anal-retentive lint checker and does no damage, that's OK.
>
> --
> Tim Roberts, t...@probo.com
> Providenza & Boekelheide, Inc.
>
>
>
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> libusbx-devel mailing list
> libusbx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libusbx-devel
>
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel