cairo/src/check-link.c
Tim-Philipp Müller 4ea2991a40 Retire dummy cairo-version.h header to fix meson subproject build
It was originally added to make bisecting easier,
but has outlived its usefuleness now.

Going forward we'll have just a single cairo-version.h
header file, the one with the real version numbers.

This is needed to fix the case where cairo is being
built as a Meson subproject, but also simplifies
things in general.

Fixes #421
2020-09-29 15:50:53 +00:00

17 lines
347 B
C

#include <cairo.h>
#include <stdio.h>
int
main (void)
{
printf ("Check linking to the just built cairo library\n");
if (cairo_version () == CAIRO_VERSION) {
return 0;
} else {
fprintf (stderr,
"Error: linked to cairo version %s instead of %s\n",
cairo_version_string (),
CAIRO_VERSION_STRING);
return 1;
}
}