The BCS equations are extended to incorporate the contribution of the
resonant part of the continuum single-particle spectrum. The effect of
the resonant continuum appears in the new set of equations through th
e generalized level density. A numerical application is presented for
the nucleus Sn-170.