Skip to content

Instantly share code, notes, and snippets.

@Ancurio Ancurio/disable_nano.patch
Last active Aug 29, 2015

Embed
What would you like to do?
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 7d3a4da..8782c56 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -340,7 +340,7 @@ struct FPSLimiter
private:
void delayTicks(uint64_t ticks)
{
-#ifdef HAVE_NANOSLEEP
+#if defined(HAVE_NANOSLEEP) && !defined(_WIN32)
struct timespec req;
req.tv_sec = 0;
req.tv_nsec = ticks / tickFreqNS;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.