changeset 27617:0a0ece3477af

I don't remember why exactly, but enum typedefs should not have a name after the "enum typedef"--it should only be at the end. Maybe it's not compatible with C++ or something? Also move the #include account.h below the typedef because account.h needs this enum
author Mark Doliner <mark@kingant.net>
date Tue, 14 Jul 2009 21:23:18 +0000
parents 18a96fe78870
children e574d1858b5a
files libpurple/privacy.h
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/privacy.h	Tue Jul 14 17:56:13 2009 +0000
+++ b/libpurple/privacy.h	Tue Jul 14 21:23:18 2009 +0000
@@ -26,12 +26,10 @@
 #ifndef _PURPLE_PRIVACY_H_
 #define _PURPLE_PRIVACY_H_
 
-#include "account.h"
-
 /**
  * Privacy data types.
  */
-typedef enum _PurplePrivacyType
+typedef enum
 {
 	PURPLE_PRIVACY_ALLOW_ALL = 1,
 	PURPLE_PRIVACY_DENY_ALL,
@@ -40,6 +38,8 @@
 	PURPLE_PRIVACY_ALLOW_BUDDYLIST
 } PurplePrivacyType;
 
+#include "account.h"
+
 #ifdef __cplusplus
 extern "C" {
 #endif