Mercurial > pidgin.yaz
diff libpurple/privacy.h @ 27629:828d21a1ec43
Ah, this is what g++ doesn't like.
../libpurple/privacy.h:32: error: use of enum ¡Æ_PurplePrivacyType¡Ç without previous declaration
../libpurple/privacy.h:32: error: invalid type in declaration before ¡Æ;¡Ç token
Let's just go back to what we had before (but with the #include account.h below
the num definition)
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 15 Jul 2009 08:59:00 +0000 |
parents | 606a0e577b34 |
children | 5876584828e8 |
line wrap: on
line diff
--- a/libpurple/privacy.h Wed Jul 15 07:22:50 2009 +0000 +++ b/libpurple/privacy.h Wed Jul 15 08:59:00 2009 +0000 @@ -29,16 +29,14 @@ /** * Privacy data types. */ -typedef enum _PurplePrivacyType PurplePrivacyType; - -enum _PurplePrivacyType +typedef enum _PurplePrivacyType { PURPLE_PRIVACY_ALLOW_ALL = 1, PURPLE_PRIVACY_DENY_ALL, PURPLE_PRIVACY_ALLOW_USERS, PURPLE_PRIVACY_DENY_USERS, PURPLE_PRIVACY_ALLOW_BUDDYLIST -}; +} PurplePrivacyType; #include "account.h"