Uniaxial type-II superconductors near the upper critical field