diff options
author | Jeff Garzik <jeff@garzik.org> | 2010-11-26 15:50:36 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-11-26 15:50:36 -0500 |
commit | 352bab2109d491639b9571211b6f59ddeda0e304 (patch) | |
tree | 7732467ef2951064a0244e22c0f056b7238ff8b0 /compat.h | |
parent | b7cc9b68ad0df14e976fa02e5eaa51149aac2414 (diff) |
Introduce compat.h, for Win32 builds
Diffstat (limited to 'compat.h')
-rw-r--r-- | compat.h | 15 |
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__ */ |