单项选择题

设函数f(x)在(-∞,+∞)内有定义,且f(x+π)=f(x)+sinx,则f(x)=()

A.
B.
C.
D.