delorie.com/archives/browse.cgi | search |
From: | Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: as and structs |
Date: | 16 Aug 2003 15:24:24 GMT |
Organization: | Aachen University of Technology (RWTH) |
Lines: | 23 |
Message-ID: | <bhlib8$9g8$1@nets3.rz.RWTH-Aachen.DE> |
References: | <3f3e2079$0$168$cc7c7865 AT news DOT luth DOT se> |
NNTP-Posting-Host: | acp3bf.physik.rwth-aachen.de |
X-Trace: | nets3.rz.RWTH-Aachen.DE 1061047464 9736 137.226.32.75 (16 Aug 2003 15:24:24 GMT) |
X-Complaints-To: | abuse AT rwth-aachen DOT de |
NNTP-Posting-Date: | 16 Aug 2003 15:24:24 GMT |
Originator: | broeker@ |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |