diff libpurple/privacy.h @ 27541: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 584063555949
children 606a0e577b34
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