From 05b19376eab0550595c1f27647d028074c8f739a Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 25 Nov 2020 15:16:24 +0100 Subject: Use G_BEGIN_DECLS/G_END_DECLS macros --- libwindow-settings/mate-window-manager.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'libwindow-settings') diff --git a/libwindow-settings/mate-window-manager.h b/libwindow-settings/mate-window-manager.h index 6abc2b96..0bc2fc24 100644 --- a/libwindow-settings/mate-window-manager.h +++ b/libwindow-settings/mate-window-manager.h @@ -26,8 +26,8 @@ #ifndef MATE_WINDOW_MANAGER_H #define MATE_WINDOW_MANAGER_H +#include #include - #include /* Increment if backward-incompatible changes are made, so we get a clean @@ -87,9 +87,7 @@ typedef struct } MateWMSettings; -#ifdef __cplusplus -extern "C" { -#endif +G_BEGIN_DECLS #define MATE_WINDOW_MANAGER(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, mate_window_manager_get_type (), MateWindowManager) #define MATE_WINDOW_MANAGER_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, mate_window_manager_get_type (), MateWindowManagerClass) @@ -168,8 +166,6 @@ void mate_window_manager_get_double_click_actions (MateWindowManager MateWMSettings *mate_wm_settings_copy (MateWMSettings *settings); void mate_wm_settings_free (MateWMSettings *settings); -#ifdef __cplusplus -} -#endif +G_END_DECLS #endif /* MATE_WINDOW_MANAGER_H */ -- cgit v1.2.1