This is the mail archive of the
ecos-devel@sources.redhat.com
mailing list for the eCos project.
Re: Conditional Compilation
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Raghu <raghu_dk at yahoo dot com>
- Cc: ecos <ecos-devel at sources dot redhat dot com>
- Date: Tue, 22 Mar 2005 09:27:10 +0100
- Subject: Re: Conditional Compilation
- References: <20050322051233.41596.qmail@web40423.mail.yahoo.com>
On Mon, Mar 21, 2005 at 09:12:33PM -0800, Raghu wrote:
> Hi,
>
> I want to have a macro define through which I will be
> able to conditionally compile either REDBOOT or ecos
> library.
#include <pkgconf/system.h>
#ifdef CYGPKG_REDBOOT
#include <redboot.h>
#include <net/net.h>
#else
#include <pkgconf/net.h>
#endif
Andrew