# HG changeset patch # User Mark Doliner # Date 1247606598 0 # Node ID 0a0ece3477af96d0a5fd5edde9a9467d6741a47b # Parent 18a96fe7887046eb6f99986a8b0ef8a81841bcad 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 diff -r 18a96fe78870 -r 0a0ece3477af libpurple/privacy.h --- 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