Updated: Sudoku no longer crashes
[moon.git] / cairo / src / check-link.c
blob66ca1b2413ca619511b6075b73234ef44fd42e3b
1 #define CAIRO_VERSION_H 1
3 #include <cairo.h>
5 /* get the "real" version info instead of dummy cairo-version.h */
6 #undef CAIRO_VERSION_H
7 #include "../cairo-version.h"
9 #include <stdio.h>
11 int
12 main (void)
14 printf ("Check linking to the just built cairo library\n");
15 if (cairo_version () == CAIRO_VERSION) {
16 return 0;
17 } else {
18 fprintf (stderr,
19 "Error: linked to cairo version %s instead of %s\n",
20 cairo_version_string (),
21 CAIRO_VERSION_STRING);
22 return 1;