Revert "Changed #if to #ifdef to fix cabal-dev build failure"

This reverts commit c11aeeff1e9762fd541d9b996c37ef1d5718cdca.