Macy's posted strong fiscal second-quarter results on Thursday and raised its full-year guidance.