Charm D-meson production in 360 GeV/c pp interactions; comparison with π-p at the same energy