summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMichael Natterer <mitch@imendio.com>2008-05-26 15:14:41 +0000
committerMichael Natterer <mitch@src.gnome.org>2008-05-26 15:14:41 +0000
commitc9d073570e784c5ae883dcf4cc20cf2b5e243935 (patch)
treed12cfee261d3b5173d1383762f93ac726d055fdc /contrib
parenta21f711c671d54f68e42c0dda2334c9a5f205104 (diff)
downloadgdk-pixbuf-c9d073570e784c5ae883dcf4cc20cf2b5e243935.tar.gz
gdk-pixbuf-xlib.h use G_BEGIN/END_DECLS.
2008-05-26 Michael Natterer <mitch@imendio.com> * gdk-pixbuf-xlib.h * gdk-pixbuf-xlibrgb.h: use G_BEGIN/END_DECLS. svn path=/trunk/; revision=20180
Diffstat (limited to 'contrib')
-rw-r--r--contrib/gdk-pixbuf-xlib/ChangeLog5
-rw-r--r--contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib.h12
-rw-r--r--contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.h13
3 files changed, 13 insertions, 17 deletions
diff --git a/contrib/gdk-pixbuf-xlib/ChangeLog b/contrib/gdk-pixbuf-xlib/ChangeLog
index 669089cbd..ee5b585d8 100644
--- a/contrib/gdk-pixbuf-xlib/ChangeLog
+++ b/contrib/gdk-pixbuf-xlib/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-26 Michael Natterer <mitch@imendio.com>
+
+ * gdk-pixbuf-xlib.h
+ * gdk-pixbuf-xlibrgb.h: use G_BEGIN/END_DECLS.
+
2008-02-16 Matthias Clasen <mclasen@redhat.com>
* === 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 04f573e7d..4ffc56039 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 <gdk-pixbuf/gdk-pixbuf.h>
#include <gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.h>
+
+G_BEGIN_DECLS
+
#include <X11/Xlib.h>
@@ -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 c94e746ff..9433aeacc 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 <glib.h>
+
+G_BEGIN_DECLS
#include <X11/Xlib.h>
#include <X11/Xutil.h>
-#include <glib.h>
-
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__ */