[bug][fix] platform/unix/directory.c doesn't compile under Debian Linux

nicolas.pelletier3 at free.fr nicolas.pelletier3 at free.fr
Sat Nov 13 09:08:37 PST 2004


Tim Olson <tim at io.com> writes:

> There are variable declarations in readDirectory()  which are not at
> the beginning of a block; that is illegal in ANSI C (dunno why it
> compiles OK under MacOS, which is also using gcc)?

While it is not legal ANSI C, it is okay in C99. GCC versions from 3.0
on use C99,  but they still accept the -ansi  compilation flag to fall
back to  ANSI C compliance.  I guess you  were using gcc  2.95.x under
MacOS (which is still quite common)...

-- 
Nicolas




More information about the Slate mailing list