According to the 1929 Geneva Convention, captured troops were to receive the same housing and food as the country's own troops. Here are some excerpts from SECTION II - PRISONERS OF WAR CAMPS. (emphasis added)
Art. 10. Prisoners of war shall be lodged in buildings or huts which afford all possible safeguards as regards hygiene and salubrity. The premises must be entirely free from damp, and adequately heated and lighted. All precautions shall be taken against the danger of fire. As regards dormitories, their total area, minimum cubic air space, fittings and bedding material, the conditions shall be the same as for the depot troops of the detaining Power.