In an interview with his home town newspaper the Basler Zeitung, the 30-year-old responded to a question about when he might stop playing.
"It will be a while before it's time. So long as I'm well supported, I'll participate." he said.
"It will likely be my body that decides when it's time."
The Swiss has won a men's record 16 grand slam singles titles but has dropped to fourth in the world rankings after a disappointing season where he failed to win a major.
Short link: