Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make go-cairo compile with cairo versions older than 1.16 #31

Merged
merged 2 commits into from
Mar 4, 2024
Merged

make go-cairo compile with cairo versions older than 1.16 #31

merged 2 commits into from
Mar 4, 2024

Conversation

pebbe
Copy link
Contributor

@pebbe pebbe commented Mar 4, 2024

The function SVGSurfaceSetDocumentUnit doesn't work with Cairo older than version 1.16, because it didn't have the function cairo_svg_surface_set_document_unit. This caused compiling of go-cairo to fail.

This update adds a do-nothing implementation of cairo_svg_surface_set_document_unit if the detected version of Cairo is older than 1.16.

@ungerik ungerik merged commit 47de885 into ungerik:master Mar 4, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants