The headers that are installed by default with cairo are busted. I will attach a patch that should address the issue .. It might not be complete but figured you all would know a bit more about that then me.
Created attachment 8142 [details] cairo-1.3.8-headers.patch
It's not a bug. You should be adding the right -I to your CFLAGS (by way of using `pkg-config --cflags cairo` for example) and #include <cairo.h>. I'm not sure if we want to support #include <cairo/cairo.h>. In that case we should switch to #include "cairo.h" syntax in the public header files. I'm fine either way. Carl?
This debate occassionally rages on (e.g. http://www.nabble.com/internal-cairo-include-syntax-seems-not-flexible-enough,-backward-compatible-fix-proposal.-td19583394.html), in short #include <cairo/cairo.h> is more likely to lead to subtle bugs.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.