diff libpurple/stringref.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 6bf32c9e15a7
children
line wrap: on
line diff
--- a/libpurple/stringref.h	Tue Jan 03 19:29:43 2012 +0000
+++ b/libpurple/stringref.h	Tue Jan 03 23:32:59 2012 +0000
@@ -29,11 +29,9 @@
 #ifndef _PURPLE_STRINGREF_H_
 #define _PURPLE_STRINGREF_H_
 
-#ifdef __cplusplus
-extern "C" {
-#endif
+typedef struct _PurpleStringref PurpleStringref;
 
-typedef struct _PurpleStringref PurpleStringref;
+G_BEGIN_DECLS
 
 /**
  * Creates an immutable reference-counted string object.  The newly
@@ -131,8 +129,6 @@
  */
 size_t purple_stringref_len(const PurpleStringref *stringref);
 
-#ifdef __cplusplus
-}
-#endif
+G_END_DECLS
 
 #endif /* _PURPLE_STRINGREF_H_ */