pidgin: 04fc0860: Ah, this is what g++ doesn't like.

markdoliner at pidgin.im markdoliner at pidgin.im
Wed Jul 15 05:01:24 EDT 2009


-----------------------------------------------------------------
Revision: 04fc08604e52c75e1a6fbe762bd0bf5646fb7707
Ancestor: 6d04d6b76f6ef12bc5e49a1c9bf842a1db7c1b7c
Author: markdoliner at pidgin.im
Date: 2009-07-15T08:59:00
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/04fc08604e52c75e1a6fbe762bd0bf5646fb7707

Modified files:
        libpurple/privacy.h

ChangeLog: 

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)

-------------- next part --------------
============================================================
--- libpurple/privacy.h	6631fc1b387d00ca6bb5e5e138fd5d42ac3ba6fe
+++ libpurple/privacy.h	189d1f21abd1cdfce1f32b47bb45aef7f938a44a
@@ -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"
 


More information about the Commits mailing list