"We are in a Muslim country, so we certainly cannot have it here," he said. "And for me it's not OK to have this anywhere in the world."
Sall sought to reassure Obama that gays are not persecuted in Senegal. But under Senegalese law, "an improper or unnatural act with a person of the same sex" can be punished by up to five years in prison.
Ndeye Kebe, president of a human rights organization that works with homosexuals called Women's Smile, disputed Sall's contention that gays are not discriminated against.
"I know of around a dozen people who are in prison for homosexuality as we speak," she said. "There wasn't any real proof against them, but they were found guilty and they are in prison."
And as recently as February of 2008, police rounded up men suspected of being homosexual after a Senegalese tabloid published photographs of a clandestine gay wedding in a suburb of Dakar. Gays went into hiding or fled to neighboring countries, but they were pushed out of Gambia by the president's threat of decapitation.
As for Wednesday's court ruling, Obama said he's directing his administration to comb through every federal statute to quickly determine the implications of a decision that gave the nation's legally married gay couples equal federal footing with all other married Americans.
He said he wants to make sure that gay couples who deserve benefits under the ruling get them quickly. Obama said he personally believes that gay couples legally married in one state should retain their benefits if they move to another state that doesn't recognize gay marriage.
"I believe at the root of who we are as a people, as Americans, is the basic precept that we are all equal under the law," he said. "We believe in basic fairness. And what I think yesterday's ruling signifies is one more step towards ensuring that those basic principles apply to everybody."