#if preprocessor was not recognized by "cabal-dev build" command

I have changed the preprocessor #if to #ifdef. Now cabal-dev build is passing.