Solutions of the Percus-Yevick and hyper-netted chain equations near the gas-liquid critical point