The typedef must be in the global scope I think.