Try adding a constructor to the struct. If you compile with C++ the compilation will succeed but in C it will not.