Add extern "C" stuff to cairo-xlib.h

This commit is contained in:
Carl Worth 2003-10-11 13:49:13 +00:00
parent cdc84283e3
commit 5f48214ad2
2 changed files with 19 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2003-10-11 Carl Worth <cworth@isi.edu>
* src/cairo-xlib.h: Add extern "C" stuff. (Thanks to Soory Kuloor
for the reminder).
2003-10-09 Carl Worth <cworth@isi.edu>
* src/cairo_font.c: Stub out NULL_POINTER errors as

View file

@ -29,12 +29,15 @@
#define _CAIRO_XLIB_H_
#include "cairo.h"
#ifdef _CAIROINT_H_
#include <slim_export.h>
#else
#include <slim_import.h>
#endif
#ifdef _CAIROINT_H_
#include <slim_export.h>
#else
#include <slim_import.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
/* XXX: This is a mess from the user's POV. Should the Visual or the
cairo_format_t control what render format is used? Maybe I can have
@ -53,4 +56,10 @@ cairo_set_target_drawable (cairo_t *cr,
Display *dpy,
Drawable drawable);
#ifdef __cplusplus
}
#endif
#undef __external_linkage
#endif