summaryrefslogtreecommitdiff
path: root/libpurple/stringref.h
diff options
context:
space:
mode:
authorElliott Sales de Andrade <qulogic@pidgin.im>2012-01-03 23:32:59 +0000
committerElliott Sales de Andrade <qulogic@pidgin.im>2012-01-03 23:32:59 +0000
commit1d7d489a65aa6485a0a47942334e0a498ba0ec3e (patch)
tree4cfb66486145c7669d842589946bbf92df0ea580 /libpurple/stringref.h
parent180b887f86978ea92355b776a10475289b3dfecb (diff)
downloadpidgin-1d7d489a65aa6485a0a47942334e0a498ba0ec3e.tar.gz
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.
Diffstat (limited to 'libpurple/stringref.h')
-rw-r--r--libpurple/stringref.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/libpurple/stringref.h b/libpurple/stringref.h
index cbb9eecb19..debbe1fd5c 100644
--- a/libpurple/stringref.h
+++ b/libpurple/stringref.h
@@ -29,12 +29,10 @@
#ifndef _PURPLE_STRINGREF_H_
#define _PURPLE_STRINGREF_H_
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct _PurpleStringref PurpleStringref;
+G_BEGIN_DECLS
+
/**
* Creates an immutable reference-counted string object. The newly
* created object will have a reference count of 1.
@@ -131,8 +129,6 @@ int purple_stringref_cmp(const PurpleStringref *s1, const PurpleStringref *s2);
*/
size_t purple_stringref_len(const PurpleStringref *stringref);
-#ifdef __cplusplus
-}
-#endif
+G_END_DECLS
#endif /* _PURPLE_STRINGREF_H_ */