pidgin: fe1b9e42: I don't remember why exactly, but enum t...

markdoliner at pidgin.im markdoliner at pidgin.im
Tue Jul 14 17:31:51 EDT 2009


-----------------------------------------------------------------
Revision: fe1b9e426c3f6f96ab00db928c3c9249746e5845
Ancestor: 97e5ac91f0ed5cbe744a8a399ea990d71f458a61
Author: markdoliner at pidgin.im
Date: 2009-07-14T21:23:18
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/fe1b9e426c3f6f96ab00db928c3c9249746e5845

Modified files:
        libpurple/privacy.h

ChangeLog: 

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

-------------- next part --------------
============================================================
--- libpurple/privacy.h	0dc640630e620a4c92edfb2c4c880a6cfac87f20
+++ libpurple/privacy.h	03378ca5a6c6c8af9bbd294ca1bb8c787eb5805e
@@ -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 @@ typedef enum _PurplePrivacyType
 	PURPLE_PRIVACY_ALLOW_BUDDYLIST
 } PurplePrivacyType;
 
+#include "account.h"
+
 #ifdef __cplusplus
 extern "C" {
 #endif


More information about the Commits mailing list