Hello, I've moved xwinttf.c to cairo.c and now I want to add some of the other cairo devices (ps, pdf, etc..) to this file. Since some users may have Cairo but not xwindows I'm trying to use preprocessor directives in cairo.c so that they won't get error messages when xwindows does not exist, i.e.:
#if defined(PLD_xwinttf) #include <X11/X.h> #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/cursorfont.h> #endif However, this fails because apparently PLD_xwinttf is not defined in the context of the compilation of cairo.c. This is puzzling to me since a very similar approach seems to work fine for the gd drivers: #if defined(PLD_png) || defined(PLD_jpeg) || defined(PLD_gif) #include "plplotP.h" #include "drivers.h" ... Any idea what I might be missing? thanks, -Hazen ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel