aboutsummaryrefslogtreecommitdiff
path: root/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/compat.h b/compat.h
new file mode 100644
index 0000000..a318991
--- /dev/null
+++ b/compat.h
@@ -0,0 +1,15 @@
+#ifndef __COMPAT_H__
+#define __COMPAT_H__
+
+#ifdef WIN32
+
+#include <windows.h>
+
+static inline void sleep(int secs)
+{
+ Sleep(secs * 1000);
+}
+
+#endif /* WIN32 */
+
+#endif /* __COMPAT_H__ */