Blame SOURCES/0022-lokdocview-Let-G_BEGIN-END_DECLS-handle-the-compiler.patch

135360
From 0cb9d5c152804c2cdcd173acb99d7870912d6f26 Mon Sep 17 00:00:00 2001
135360
From: Pranav Kant <pranavk@gnome.org>
135360
Date: Sat, 6 Jun 2015 02:07:31 +0530
135360
Subject: [PATCH 022/398] lokdocview: Let G_BEGIN/END_DECLS handle the compiler
135360
 check
135360
135360
Change-Id: I8c60c9ba13516fc2b3a926c19b41ee19805d74a5
135360
(cherry picked from commit 1493e66bfbceb2e57d069c0a0dbcfa64f7043da9)
135360
---
135360
 include/LibreOfficeKit/LibreOfficeKitGtk.h | 10 +++-------
135360
 1 file changed, 3 insertions(+), 7 deletions(-)
135360
135360
diff --git a/include/LibreOfficeKit/LibreOfficeKitGtk.h b/include/LibreOfficeKit/LibreOfficeKitGtk.h
135360
index b3e50d31b01d..9668904b0230 100644
135360
--- a/include/LibreOfficeKit/LibreOfficeKitGtk.h
135360
+++ b/include/LibreOfficeKit/LibreOfficeKitGtk.h
135360
@@ -16,10 +16,7 @@
135360
 #define LOK_USE_UNSTABLE_API
135360
 #include <LibreOfficeKit/LibreOfficeKit.h>
135360
 
135360
-#ifdef __cplusplus
135360
-extern "C"
135360
-{
135360
-#endif
135360
+G_BEGIN_DECLS
135360
 
135360
 #define LOK_DOCVIEW(obj)          GTK_CHECK_CAST (obj, lok_docview_get_type(), LOKDocView)
135360
 #define LOK_DOCVIEW_CLASS(klass)  GTK_CHECK_CLASS_CAST (klass, lok_docview_get_type(), LOKDocViewClass)
135360
@@ -77,9 +74,8 @@ void            lok_docview_post_key    (GtkWidget* pWidget, GdkEventKey* pEvent
135360
 
135360
 /// Get the visible area of the document (in twips).
135360
 void lok_docview_get_visarea(LOKDocView* pThis, GdkRectangle* pArea);
135360
-#ifdef __cplusplus
135360
-}
135360
-#endif
135360
+
135360
+G_END_DECLS
135360
 
135360
 #endif // INCLUDED_LIBREOFFICEKIT_LIBREOFFICEKITGTK_H
135360
 
135360
-- 
135360
2.12.0
135360