mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-20 14:00:10 +01:00
25 lines
556 B
C
25 lines
556 B
C
|
|
#define CAIRO_VERSION_H 1
|
||
|
|
|
||
|
|
#include <cairo-boilerplate.h>
|
||
|
|
|
||
|
|
/* get the "real" version info instead of dummy cairo-version.h */
|
||
|
|
#undef CAIRO_VERSION_H
|
||
|
|
#include "../cairo-version.h"
|
||
|
|
|
||
|
|
#include <stdio.h>
|
||
|
|
|
||
|
|
int
|
||
|
|
main (void)
|
||
|
|
{
|
||
|
|
printf ("Check linking to the just built cairo boilerplate library\n");
|
||
|
|
if (cairo_boilerplate_version () == CAIRO_VERSION) {
|
||
|
|
return 0;
|
||
|
|
} else {
|
||
|
|
fprintf (stderr,
|
||
|
|
"Error: linked to cairo boilerplate version %s instead of %s\n",
|
||
|
|
cairo_boilerplate_version_string (),
|
||
|
|
CAIRO_VERSION_STRING);
|
||
|
|
return 1;
|
||
|
|
}
|
||
|
|
}
|