Make sure toupper() is properly declared.