File: sleep.h

package info (click to toggle)
visitors 0.7-10
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 668 kB
  • ctags: 1,095
  • sloc: ansic: 13,139; perl: 58; makefile: 34; sh: 13
file content (14 lines) | stat: -rw-r--r-- 259 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* compatibility for the unix/win32 sleep() function */

#ifndef __VI_SLEEP_H
#define __VI_SLEEP_H

#ifdef WIN32
#include <windows.h>
#define vi_sleep(x) Sleep((x)*1000)
#else
#include <unistd.h>
#define vi_sleep(x) sleep(x)
#endif

#endif /* __VI_SLEEP_H */