diff libpurple/xmlnode.h @ 32433:98520ee78f12

Use G_BEGIN/END_DECLS in public libpurple files. This was previously inconsistent. Sometimes there was even both the GLib macros and an extern "C" line.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Tue, 03 Jan 2012 23:32:59 +0000
parents 5aa171c8776b
children
line wrap: on
line diff
--- a/libpurple/xmlnode.h	Tue Jan 03 19:29:43 2012 +0000
+++ b/libpurple/xmlnode.h	Tue Jan 03 23:32:59 2012 +0000
@@ -28,10 +28,6 @@
 
 #include <glib.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 /**
  * The valid types for an xmlnode
  */
@@ -61,6 +57,8 @@
 	GHashTable *namespace_map;  /**< The namespace map. */
 };
 
+G_BEGIN_DECLS
+
 /**
  * Creates a new xmlnode.
  *
@@ -360,9 +358,7 @@
 xmlnode *xmlnode_from_file(const char *dir, const char *filename,
 			   const char *description, const char *process);
 
-#ifdef __cplusplus
-}
-#endif
+G_END_DECLS
 
 #endif /* _PURPLE_XMLNODE_H_ */