U.S. President Barack Obama says the Supreme Court's rulings this week on gay marriage were a victory for American democracy.
Speaking at a news conference with Senegal's President Macky Sall in Dakar, Obama said regardless of race, religion, gender, or sexual orientation the law should treat people equally.
Obama said gays and lesbians should be treated as equal under the law in Africa, where in many countries homosexuality is illegal. But President Sall says Senegal is not ready to decriminalize homosexuality.
The Supreme Court ruled Wednesday the federal government could not define marriage as only being between a man and a woman.
In comments on another decision, President Obama said the Supreme Court "made a mistake" in its decision to throw out a provision of the U.S. Voting Rights Act.
The court said the government was using decades-old information to determine which states or localities with a history of discrimination need federal approval to change their voting rules.
Obama urged Congress to come up with ways to make it easier for people to vote.