List of tweaks required for dbus-glib build for Visual Studio 2008

Thiago Macieira thiago at kde.org
Fri Jun 26 12:23:14 PDT 2009


Bruce, Henry wrote:
>Code change was in dbus-gvalue.c in demarshal_strv(). C does not accept
> variable declarations after statements, so the following code causes
> the Microsoft compiler to generate error C2143: syntax error : missing
> ';' before 'type' at the line  const char *str; (see snippet below)

I'm not one of the maintainers, but that's perfectly valid C99 code.

Are you sure you can't configure your VS compiler to use a 10-year-old C 
standard?

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20090626/3473a120/attachment.pgp 


More information about the dbus mailing list