remove typedef from enum defitions.