I've got a struct
Code:
typedef struct _entry{
bool is_submenu;
gchar *name;
gchar *command;
gchar *icon_path;
struct _entry *subentry;
} entry;
Which gives me the following error message in clang
Code:
src/common.h:5:16: error: redefinition of '_entry'
typedef struct _entry
^
src/common.h:5:16: note: previous definition is here
typedef struct _entry
^
Makes no sense to me. GCC gives the same error. I tried out a minimal example...
Code:
typedef struct test_struct
{
int some_data;
struct test_struct *next_struct;
} test;
int main(void)
{
return 0;
}
And it compiles just fine. Any ideas?