Former South African president and anti-apartheid hero Nelson Mandela is responding to treatment but remains in a critical but stable condition after more than a month in hospital, the office of President Jacob Zuma said.

"We are encouraged that Madiba is responding to treatment and urge the public to continue providing support and showering him with love, which gives him and the family strength," Zuma himself said after visiting Mandela, often referred to affectionately by his clan name Madiba, in a Pretoria hospital.

Mandela, whose 95th birthday is on July 18, has been receiving treatment for a recurring lung infection that has led to four hospital stays in the past six months.

A presidency statement said Zuma "found Mandela still critical but stable, and was informed by doctors that he was responding to treatment".

The faltering health of South Africa's first black president, a figure admired globally as a symbol of struggle against injustice and racism, has reinforced a realisation that the father of post-apartheid South Africa will not be around for ever.

His eldest daughter Makaziwe said in a court document filed late in June that her father was in a "perilous" condition and breathing with the aid of life-support machines.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.