We generalize the classical
inequalities of Wiener and Stein for the Hardy-Littlewood maximal operator to variable
spaces where the exponent function
approaches
in value. We prove a modular inequality with no assumptions on the exponent function, and a strong norm inequality if we assume the exponent function is log-Hölder continuous. As an application of our approach we give another proof of a related endpoint result due to Hästö.