diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2008-09-02 20:59:38 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2008-09-02 21:31:43 -0400 |
commit | 2823ebaa6e0a14c4270ec973467fc0f76dc34fd5 (patch) | |
tree | a08e2aafc20a4c0618096683d64f8fe1cd521847 /src/check-link.c | |
parent | 59262577708ddb656851624377efb2a671fa8ca3 (diff) | |
download | cairo-2823ebaa6e0a14c4270ec973467fc0f76dc34fd5.tar.gz |
[src/check-link.c] Simple test to check we can link to the built cairo.so
Diffstat (limited to 'src/check-link.c')
-rw-r--r-- | src/check-link.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/check-link.c b/src/check-link.c new file mode 100644 index 000000000..66ca1b241 --- /dev/null +++ b/src/check-link.c @@ -0,0 +1,24 @@ +#define CAIRO_VERSION_H 1 + +#include <cairo.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 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; + } +} |