Mail Archives: djgpp/2003/08/16/11:43:48
Martin Str|mberg <ams AT speedy DOT ludd DOT luth DOT se> wrote:
> and in y.S:
> #include "x.h"
That makes sense only rather rarely ...
> 1. What should I do to make this work nicely with prototypes and
> structs in header files?
Enclose the C-only parts in some #ifdef, e.g. #ifdef __GNUC__ or
whatever.
> 2. Why is CFLAGS missing while compiling y.S
Because, obviously, y.S is not a C source file! You wouldn't expect
the C++, Fortran or lex flags to be applied to assembler either, would
you?
It's being preprocessed by the C preprocessor, so the CPPFLAGS should
still be applied, though.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -