mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-19 14:38:10 +02:00
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
17 lines
347 B
C
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;
|
|
}
|
|
}
|