Using {-# LANGUAGE CPP #-}
, is there a preprocessor define I can #ifdef
to check whether current compilation is for macOS?
I tried __APPLE__
and others as well as googling for answers but couldn't find it.
The definition appears to be darwin_HOST_OS
! (found it by guessing based on this answer to a similar question)