forked from enlightenment/efl
elementary/elm_prefs: preserve compatibility.
C++ doens't allow empty size structure, empty structure looks harmful. I've thought about the solution and this patch is my conclusion. Because I'm not a big fan of elm_prefs, if you have any better idea then please fix it on your way.
This commit is contained in:
parent
7c19fed3e3
commit
df96735657
|
@ -19,7 +19,7 @@ EAPI Evas_Object *elm_prefs_add(Evas_Object *parent);
|
||||||
typedef struct _Elm_Prefs_Item_Spec_Void Elm_Prefs_Item_Spec_Void;
|
typedef struct _Elm_Prefs_Item_Spec_Void Elm_Prefs_Item_Spec_Void;
|
||||||
struct _Elm_Prefs_Item_Spec_Void
|
struct _Elm_Prefs_Item_Spec_Void
|
||||||
{
|
{
|
||||||
int:0; //Trick for removing warning (warning: empty struct has size 0 in C, size 1 in C++)
|
char dummy; //for compatibility (warning: empty struct has size 0 in C, size 1 in C++)
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct _Elm_Prefs_Item_Spec_Bool Elm_Prefs_Item_Spec_Bool;
|
typedef struct _Elm_Prefs_Item_Spec_Bool Elm_Prefs_Item_Spec_Bool;
|
||||||
|
|
Loading…
Reference in New Issue