Last active
August 29, 2015 14:02
-
-
Save Ancurio/238eeddf89d058947eb1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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