Add ifndef so that current sleepWakeNotifier is only called for Mac.