BRASILIA, Brazil (AP) - Brazil is willing to contribute funds to the International Monetary Fund to help minimize the effects of the European debt crisis, Finance Minister Guido Mantega said Thursday.

Mantega made his comments after meeting with IMF Managing Director Christine Lagarde. Brazil was Lagarde's last stop on a Latin American tour that has also included visits to Peru and Mexico.

"This time, the IMF did not come here bringing money as in the past," Mantega told reporters. "This time it came to ask Brazil to lend it money and I prefer to be a creditor than a debtor."

Brazil endured decades of lectures from the developed world about its spendthrift ways. But it now has one of the world's fastest growing economies.

Mantega said the amount Brazil will lend the IMF will be decided in a February meeting of the BRICS countries (Brazil, Russia, India, China and South Africa).

Lagarde said the European crisis will affect countries in other parts of the world and said that Brazil's offer to contribute funds to the IMF was encouraging.

She said no country was immune the crisis but that Brazil was in a stronger position to withstand its effects because of the country's "solid" macroeconomic policies.

Earlier in the day Lagarde met with President Dilma Rousseff but details of their talks were not disclosed.