Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #define CAIRO_VERSION_H 1
  2.  
  3. #include <cairo.h>
  4.  
  5. /* get the "real" version info instead of dummy cairo-version.h */
  6. #undef CAIRO_VERSION_H
  7. #include "../cairo-version.h"
  8.  
  9. #include <stdio.h>
  10.  
  11. int
  12. main (void)
  13. {
  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;
  23.   }
  24. }
  25.