Skip to content

Instantly share code, notes, and snippets.

@Ancurio
Last active August 29, 2015 14:02
Show Gist options
  • Save Ancurio/238eeddf89d058947eb1 to your computer and use it in GitHub Desktop.
Save Ancurio/238eeddf89d058947eb1 to your computer and use it in GitHub Desktop.
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