From 8197f71e2a50b9a74b99315bb481274f612b83b3 Mon Sep 17 00:00:00 2001 From: Michal Ratajsky Date: Mon, 23 Jun 2014 12:36:57 +0200 Subject: Use G_{BEGIN,END}_DECLS instead of #ifdef __cplusplus in header files and make sure to include glib.h for these macros --- libmate-desktop/mate-desktop-utils.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'libmate-desktop/mate-desktop-utils.h') diff --git a/libmate-desktop/mate-desktop-utils.h b/libmate-desktop/mate-desktop-utils.h index 8bba7d3..824b11a 100644 --- a/libmate-desktop/mate-desktop-utils.h +++ b/libmate-desktop/mate-desktop-utils.h @@ -34,9 +34,7 @@ #include #include -#ifdef __cplusplus -extern "C" { -#endif +G_BEGIN_DECLS /* prepend the terminal command to a vector */ void mate_desktop_prepend_terminal_to_vector (int *argc, char ***argv); @@ -44,8 +42,6 @@ void mate_desktop_prepend_terminal_to_vector (int *argc, char ***argv); /* replace gdk_spawn_command_line_on_screen, not available in GTK3 */ gboolean mate_gdk_spawn_command_line_on_screen (GdkScreen *screen, const gchar *command, GError **error); -#ifdef __cplusplus -} -#endif +G_END_DECLS #endif /* MATE_DESKTOP_UTILS_H */ -- cgit v1.2.1