Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/games



On Tue, 18 Dec 2007, Tom Spindler wrote:
> Modified Files:
>       src/games/fortune/strfile: strfile.c
>       src/games/phantasia: setup.c
> 
> Log Message:
> more __dead fallout: these two files are built for the native host, not
> for the target host - and thus do not necessarily have __dead defined in
> <sys/cdefs.h>.

If they are built for the native host, then they should use the tools
framework, and they should have

#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif

before #include <cdefs.h>.  They should then pick up the compat
definition of __dead from src/tools/compat/compat_defs.h.

Fixing this looks non-trivial, so your workaround will probably have to
do for now (though I think you should #define __dead as nothing, not as
a semicolon).

--apb (Alan Barrett)



Home | Main Index | Thread Index | Old Index