summaryrefslogtreecommitdiff
path: root/shared/disable_standby.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/disable_standby.h')
-rw-r--r--shared/disable_standby.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/shared/disable_standby.h b/shared/disable_standby.h
index 399d0b9c..1a2a2b8a 100644
--- a/shared/disable_standby.h
+++ b/shared/disable_standby.h
@@ -10,20 +10,17 @@ namespace util
class DisableStandby
{
public:
+#ifdef FFS_WIN
DisableStandby()
{
-#ifdef FFS_WIN
::SetThreadExecutionState(ES_CONTINUOUS | ES_SYSTEM_REQUIRED /* | ES_AWAYMODE_REQUIRED*/ );
-#endif
}
~DisableStandby()
{
-#ifdef FFS_WIN
::SetThreadExecutionState(ES_CONTINUOUS);
-#endif
}
-
+#endif
};
}
bgstack15