From c9d073570e784c5ae883dcf4cc20cf2b5e243935 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Mon, 26 May 2008 15:14:41 +0000 Subject: [PATCH] gdk-pixbuf-xlib.h use G_BEGIN/END_DECLS. 2008-05-26 Michael Natterer * gdk-pixbuf-xlib.h * gdk-pixbuf-xlibrgb.h: use G_BEGIN/END_DECLS. svn path=/trunk/; revision=20180 --- contrib/gdk-pixbuf-xlib/ChangeLog | 5 +++++ contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib.h | 12 ++++-------- contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.h | 13 ++++--------- 3 files changed, 13 insertions(+), 17 deletions(-) diff --git a/contrib/gdk-pixbuf-xlib/ChangeLog b/contrib/gdk-pixbuf-xlib/ChangeLog index 669089cbd6..ee5b585d83 100644 --- a/contrib/gdk-pixbuf-xlib/ChangeLog +++ b/contrib/gdk-pixbuf-xlib/ChangeLog @@ -1,3 +1,8 @@ +2008-05-26 Michael Natterer + + * gdk-pixbuf-xlib.h + * gdk-pixbuf-xlibrgb.h: use G_BEGIN/END_DECLS. + 2008-02-16 Matthias Clasen * === Released 2.13.0 === diff --git a/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib.h b/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib.h index 04f573e7d4..4ffc56039f 100644 --- a/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib.h +++ b/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib.h @@ -21,12 +21,11 @@ #ifndef GDK_PIXBUF_XLIB_H #define GDK_PIXBUF_XLIB_H -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - #include #include + +G_BEGIN_DECLS + #include @@ -83,9 +82,6 @@ GdkPixbuf *gdk_pixbuf_xlib_get_from_drawable (GdkPixbuf *dest, int dest_x, int dest_y, int width, int height); -#ifdef __cplusplus -} -#endif /* __cplusplus */ - +G_END_DECLS #endif /* GDK_PIXBUF_XLIB_H */ diff --git a/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.h b/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.h index c94e746ff2..9433aeaccf 100644 --- a/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.h +++ b/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.h @@ -51,15 +51,13 @@ #ifndef __XLIB_RGB_H__ #define __XLIB_RGB_H__ -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ +#include + +G_BEGIN_DECLS #include #include -#include - typedef struct _XlibRgbCmap XlibRgbCmap; struct _XlibRgbCmap { @@ -185,9 +183,6 @@ xlib_rgb_get_display (void); Screen * xlib_rgb_get_screen (void); -#ifdef __cplusplus -} -#endif /* __cplusplus */ - +G_END_DECLS #endif /* __XLIB_RGB_H__ */