]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - windows/winstuff.h
Render timing.c robust in the face of strangeness. The strangenesses
[PuTTY.git] / windows / winstuff.h
index 28dd08dbc70f2540fed86496a7fac3802122afba..177c7d2fc7a0a8922976786abcdf6987a6f49bad 100644 (file)
@@ -138,6 +138,15 @@ GLOBAL void *logctx;
 #define FILTER_WAVE_FILES ("Wave Files (*.wav)\0*.WAV\0" \
                               "All Files (*.*)\0*\0\0\0")
 
+/*
+ * On some versions of Windows, it has been known for WM_TIMER to
+ * occasionally get its callback time simply wrong, and call us
+ * back several minutes early. Defining these symbols enables
+ * compensation code in timing.c.
+ */
+#define TIMING_SYNC
+#define TIMING_SYNC_TICKCOUNT
+
 /*
  * winnet.c dynamically loads WinSock 2 or WinSock 1 depending on
  * what it can get, which means any WinSock routines used outside