[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

name clash question

I found (while compiling EPICS-base under RTEMS) that many rtems
include files define a macro

#define delay( )  something

One of these found its way through installation into libcpu/cpu.h

Obviously, this leads to obscure compiling errors in an application
that does e.g.

#include <rtems.h> /* implicitely includes libcpu/cpu.h with delay
macro */

static int delay(void)
/* do something */

Is the existence of the "delay" macro an RTEMS "feature" or should the
namespace be cleaned up?

Regards, Till.