From 530ffd0b7d3c39757b20f00716e486b5caf89aff Mon Sep 17 00:00:00 2001 From: sanine Date: Wed, 12 Oct 2022 12:03:23 -0500 Subject: add cairo --- libs/cairo-1.16.0/boilerplate/check-link.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 libs/cairo-1.16.0/boilerplate/check-link.c (limited to 'libs/cairo-1.16.0/boilerplate/check-link.c') diff --git a/libs/cairo-1.16.0/boilerplate/check-link.c b/libs/cairo-1.16.0/boilerplate/check-link.c new file mode 100644 index 0000000..f164448 --- /dev/null +++ b/libs/cairo-1.16.0/boilerplate/check-link.c @@ -0,0 +1,24 @@ +#define CAIRO_VERSION_H 1 + +#include + +/* get the "real" version info instead of dummy cairo-version.h */ +#undef CAIRO_VERSION_H +#include "../cairo-version.h" + +#include + +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; + } +} -- cgit v1.2.1