Re: patches to make it compile with very old compilers
"Bernhard R. Link" <[email protected]>
| Newsgroups | gmane.comp.window-managers.ratpoison.devel |
|---|---|
| Message-ID | <[email protected]> |
* Matthias Kilian <[email protected]> [090719 09:47]: > For arrays of unspecified length (mentioned in an earlier mail, > IIRC): I think something like > > struct foo { > int bar; > char baz[]; > }; > > can easily be replaced by > > struct foo { > int bar; > char baz[0]; > }; > > without semantic changes (i.e. sizeof (struct foo) is the same for > both variants). Note that this is an gcc extension. So while it will make it work with older gcc compilers, it might cause to break with other compilers, even other up-to-date ones. Hochachtungsvoll, Bernhard R. Link