Commit feaa50f1 authored by Ale Abdo's avatar Ale Abdo

Fix compilation without cairo

parent 2c8c9899
......@@ -15,6 +15,8 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifdef HAVE_CAIROMM
#include "graph.hh"
#include PYCAIRO_HEADER
......@@ -25,3 +27,5 @@ PyObject* gt_PycairoContext_FromContext(cairo_t *ctx, PyTypeObject *type,
{
return PycairoContext_FromContext(ctx, type, base);
}
#endif // HAVE_CAIROMM
  • That patch was wrong btw... the ifdef needs to come after the include.

  • the ifdef needs to come after the include

    You live, you learn. But why is graph.hh particular in this sense?

    I see graph_cairo_draw has other includes but only graph.hh comes before the ifdef.

  • It includes config.h, which has all the autoconf defines...

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment