Skip to content

Commit

Permalink
Fix compilation when CAIRO_HAS_PDF_SURFACE is false
Browse files Browse the repository at this point in the history
In this case the signature of the Rcairo_new_pdf_backend funciton definition didn't match its declaration, since the final SEXP argument was missing.
  • Loading branch information
rtobar authored and s-u committed Aug 2, 2024
1 parent f5728f1 commit d0489c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pdf-backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ Rcairo_backend *Rcairo_new_pdf_backend(Rcairo_backend *be, int conn, const char
#else
Rcairo_backend_def *RcairoBackendDef_pdf = 0;

Rcairo_backend *Rcairo_new_pdf_backend(Rcairo_backend *be, int conn, const char *filename, double width, double height)
Rcairo_backend *Rcairo_new_pdf_backend(Rcairo_backend *be, int conn, const char *filename, double width, double height, SEXP aux)
{
error("cairo library was compiled without PDF back-end.");
return NULL;
Expand Down

0 comments on commit d0489c8

Please sign in to comment.