This is the mail archive of the ecos-devel@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Conditional Compilation


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]