Mercurial > pidgin
changeset 27553: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 | 9908d5f5fde0 |
children | 38feacee7c86 5e83f9fe4d09 |
files | libpurple/privacy.h |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
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"