'Func-def not allowed...' error on IR MP3 controller

The Tools + Auto format menu item would help you with that atrocious indenting BEFORE you post any more code.