US President Barack Obama has called on African governments to give gay people equal rights by decriminalising homosexual acts.
Mr Obama made the comments in Senegal after meeting President Macky Sall on the first leg of his African tour.
Mr Sall said Senegal was a "very tolerant" country but it was "not ready to decriminalise homosexuality".
Homosexual acts are still a crime in 38 African countries, where most people hold conservative religious views.
In 2011, the US and UK hinted that they could withdraw aid from countries which did not respect gay rights.
Mr Obama said at a news conference that the issue did not come up in his discussions with Mr Sall.
Nevertheless, he believed that while different customs and religions should be respected, the law should treat everybody equally, he said.
Mr Obama welcomed the US Supreme Court's decision on Wednesday to strike down a law that denied the recognition of same-sex marriages.
The ruling was a "victory for American democracy and a proud day for equal rights", he said
Mr Sall said Senegal was still not ready to change its laws, but that "does not mean we are homophobic''.