[En-Nut-Discussion] unix port & header files

Harald Kipp harald.kipp at egnite.de
Fri Mar 5 09:38:16 CET 2004


Matthias,

At 19:29 04.03.2004 +0100, you wrote:
>I guess for the application level wrapper,
>there is no such common header file. :(
>
>But adding one include line in the application
>should be fine.
>
>Or I could add a check to all nut/os files...

One idea is, to
#define NUTOS_APPLICATION
before the first #include in your application
code and include different header files
in compiler.h
#ifdef NUTOS_APPLICATION
#include for apps
#else
#include for os
#endif

However, I think it is a better idea to
specify a different definition in the Nut/OS,
code like
#define NUTOS_LIBRARY
So the application need not to deal with
this stuff.

Harald





More information about the En-Nut-Discussion mailing list