Remove inline keyword from leapyear function