fixed compilation error for gcc

Could not compile due to inline struct definition. I guess this one describes the problem:
https://stackoverflow.com/questions/876048/why-can-i-define-structures-and-classes-within-a-function-in-c/876069#876069