mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +00:00
Fix compilation on Windows
This commit is contained in:
@@ -22,7 +22,7 @@ disable_screensaver()
|
|||||||
kIOPMAssertionLevelOn, reasonForActivity, &assertionID);
|
kIOPMAssertionLevelOn, reasonForActivity, &assertionID);
|
||||||
// ignore result: success == kIOReturnSuccess
|
// ignore result: success == kIOReturnSuccess
|
||||||
#elif _WIN32
|
#elif _WIN32
|
||||||
SetThreadExecutionState(EXECUTION_STATE.ES_DISPLAY_REQUIRED | EXECUTION_STATE.ES_CONTINUOUS);
|
SetThreadExecutionState(ES_DISPLAY_REQUIRED | ES_CONTINUOUS);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@ enable_screensaver()
|
|||||||
#if __APPLE__
|
#if __APPLE__
|
||||||
IOReturn success = IOPMAssertionRelease(assertionID);
|
IOReturn success = IOPMAssertionRelease(assertionID);
|
||||||
#elif _WIN32
|
#elif _WIN32
|
||||||
SetThreadExecutionState(EXECUTION_STATE.ES_CONTINUOUS);
|
SetThreadExecutionState(ES_CONTINUOUS);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user