savio pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=8ef9f49e9493b40995ab1028c95c9d6c149aca68

commit 8ef9f49e9493b40995ab1028c95c9d6c149aca68
Author: Felipe Magno de Almeida <fel...@expertisesolutions.com.br>
Date:   Tue Jul 15 18:29:48 2014 -0300

    Fixes order of typedefs
    
    C++ compilers refuse to compile typedefs for types not declared yet.
    
    The typedefs in the elm_interface_atspi_accessible.h were out of order
    with the definition (and consequently its declaration) of its struct.
    
    This fixes by modifying the order of the typedefs to be after the
    struct definition.
---
 src/lib/elm_interface_atspi_accessible.h | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/lib/elm_interface_atspi_accessible.h 
b/src/lib/elm_interface_atspi_accessible.h
index 0cfdaa7..b38ef08 100644
--- a/src/lib/elm_interface_atspi_accessible.h
+++ b/src/lib/elm_interface_atspi_accessible.h
@@ -20,8 +20,6 @@ typedef uint64_t Elm_Atspi_State_Set;
 #define STATE_TYPE_GET(state_set, type)   (state_set & (1 << type))
 
 
-typedef enum _Elm_Atspi_Role Elm_Atspi_Role;
-
 /**
  * @enum _Elm_Atspi_Role
  * Describes the role of an object visible to AT-SPI Clients.
@@ -134,7 +132,7 @@ enum _Elm_Atspi_Role
     ELM_ATSPI_ROLE_LAST_DEFINED,
 };
 
-typedef enum _Elm_Atspi_State_Type Elm_Atspi_State_Type;
+typedef enum _Elm_Atspi_Role Elm_Atspi_Role;
 
 /**
  * @enum _Elm_Atspi_State_Type
@@ -186,7 +184,7 @@ enum _Elm_Atspi_State_Type
     ELM_ATSPI_STATE_LAST_DEFINED,
 };
 
-typedef enum _Elm_Atspi_Relation_Type Elm_Atspi_Relation_Type;
+typedef enum _Elm_Atspi_State_Type Elm_Atspi_State_Type;
 
 /**
  * Elm_Atspi_Relation_Type describes relation between two objects.
@@ -214,8 +212,7 @@ enum _Elm_Atspi_Relation_Type {
      ELM_ATSPI_RELATION_LAST_DEFINED,
 };
 
-
-typedef struct _Elm_Atspi_Event_State_Changed_Data 
Elm_Atspi_Event_State_Changed_Data;
+typedef enum _Elm_Atspi_Relation_Type Elm_Atspi_Relation_Type;
 
 struct _Elm_Atspi_Event_State_Changed_Data
 {
@@ -223,7 +220,8 @@ struct _Elm_Atspi_Event_State_Changed_Data
    Eina_Bool new_value;
 };
 
-typedef struct _Elm_Atspi_Event_Children_Changed_Data 
Elm_Atspi_Event_Children_Changed_Data;
+
+typedef struct _Elm_Atspi_Event_State_Changed_Data 
Elm_Atspi_Event_State_Changed_Data;
 
 struct _Elm_Atspi_Event_Children_Changed_Data
 {
@@ -231,7 +229,7 @@ struct _Elm_Atspi_Event_Children_Changed_Data
    Eo *child;
 };
 
-typedef struct _Elm_Atspi_Attribute Elm_Atspi_Attribute;
+typedef struct _Elm_Atspi_Event_Children_Changed_Data 
Elm_Atspi_Event_Children_Changed_Data;
 
 struct _Elm_Atspi_Attribute
 {
@@ -239,7 +237,7 @@ struct _Elm_Atspi_Attribute
    const char *value;
 };
 
-typedef struct _Elm_Atspi_Relation Elm_Atspi_Relation;
+typedef struct _Elm_Atspi_Attribute Elm_Atspi_Attribute;
 
 struct _Elm_Atspi_Relation
 {
@@ -247,6 +245,8 @@ struct _Elm_Atspi_Relation
    const Eo *obj;
 };
 
+typedef struct _Elm_Atspi_Relation Elm_Atspi_Relation;
+
 /**
  * Free Elm_Atspi_Attributes_List
  */

-- 


Reply via email to