Hi, Kent Sandvik <[EMAIL PROTECTED]> writes:
> Hi, saw this in DirectFB-0.9.20. The directfb.h file includes > dfb_types.h and directfb_keyboard.h as: > > #include <dfb_types.h> > ... > #include <directfb_keyboard.h> > > Now, that works with the -I flag to specify the path to the directfb > sub-directory, but if you don't want to use -I (for example, sys-root > based cross-compile systems), then the directfb.h file won't pick up > the other header files in the directfb/ subdirectory. > > If the includes are changed to: > > #include "dfb_types.h" > ... > #include "directfb_keyboard" > > Then this will work (compiler finds the other files). Is this OK, or > an issue with various compilers? The correct fix for this problem is to rename the "include" directory in the DirectFB source tree to "directfb" and include the headers using #include <directfb/dfb_types.h> ... #include <directfb/directfb_keyboard> Dok, what do you think about this change? Sven -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-dev" as subject.
