Hello,

Recently, while porting osm2pgsql to win32 platform (native compiler  
vc_80)  I came across constructs like:

struct fun
{
        int id;
        char const* name;
};

struct fun f =
{
      name: "not portable",
      id:123
};

I believe the above is an *obsolete* syntax from ancient GCC ( <  
3 ?? ), but maybe I'm missing something. C99 supports .name  notation  
for struct members initialization but  latest MS compiler doesn't  
care about C99 (what a surprise:)

Should we be striving to make osm2pgsql source platform independent  
in main OSM svn?

Cheers
Artem


_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev

Reply via email to