[openbeos] Re: newsletter (syslog)

  • From: "François Revol" <revol@xxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Mon, 15 Dec 2003 18:17:17 +0100 CET

> "François Revol" <revol@xxxxxxx> wrote:
> > > The header file syslog.h has been moved to the headers/posix 
> > > directory, where all other POSIX headers reside. If you've 
> > > previously used the full path of the old header ("#include 
> > > <support/syslog.h>"), you might encounter errors when trying 
> > > to compile your old code. The issue has not been finally 
> > > decided on, but it probably won't change in the release version 
> > > of our headers.
> > What about
> > 
> > #ifndef _SUPPORT_SYSLOG_H
> > #define _SUPPORT_SYSLOG_H
> > 
> > #warn You should use syslog.h from posix/!!!
> > 
> > #include <posix/syslog.h>
> > 
> > #endif
> > 
> > 
> > (taken that posix/ appears first in the C_INCLUDE_PATH)
> > ?
> 
> I'd be glad to break source compatibility in this case, though :)
> It's not a big deal to change the include directive if necessary, and 
> if you do it, it's backwards compatible anyway (I would consider the 
> old location as broken).
> 
Sure, just this way people will know where to look for the new 
syslog.h,
instead of just having to find it, even if it's obvious :)
We can use #error instead.

François.

Other related posts: