[cairo-commit] cairo-ocaml/src ml_cairo_lablgtk.c,1.2,1.3

Olivier Andrieu commit at pdx.freedesktop.org
Thu Dec 4 10:35:58 PST 2003


Committed by: oandrieu

Update of /cvs/cairo/cairo-ocaml/src
In directory pdx:/tmp/cvs-serv16176/src

Modified Files:
	ml_cairo_lablgtk.c 
Log Message:
new xlib backend config stuff

Index: ml_cairo_lablgtk.c
===================================================================
RCS file: /cvs/cairo/cairo-ocaml/src/ml_cairo_lablgtk.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ml_cairo_lablgtk.c	22 Nov 2003 15:24:38 -0000	1.2
--- ml_cairo_lablgtk.c	4 Dec 2003 18:35:56 -0000	1.3
***************
*** 2,6 ****
  #include <gdk/gdkx.h>
  
- #include <cairo-xlib.h>
  #include <cairo.h>
  
--- 2,5 ----
***************
*** 74,77 ****
--- 73,77 ----
  
  
+ #ifdef CAIRO_HAS_XLIB_BACKEND
  CAMLprim value
  cairo_lablgtk_surface_create_for_drawable(value d, value fmt)
***************
*** 116,117 ****
--- 116,129 ----
    return Val_unit;
  }
+ 
+ #else
+ 
+ CAMLprim value
+ cairo_lablgtk_surface_create_for_drawable(value d, value fmt)
+ { failwith("Cairo library does not support this backend") ; return Val_unit; }
+  
+ CAMLprim value
+ cairo_lablgtk_set_target_drawable(value cr, value d)
+ { failwith("Cairo library does not support this backend") ; return Val_unit; }
+ 
+ #endif /* CAIRO_HAS_XLIB_BACKEND */





More information about the cairo-commit mailing list