parent
10f076e6a5
commit
4161197698
9 changed files with 50 additions and 29 deletions
@ -1,6 +0,0 @@ |
|||||||
#define INCL_DOSPROCESS |
|
||||||
#include <os2.h> |
|
||||||
void usleep (unsigned long usec) |
|
||||||
{ |
|
||||||
DosSleep((usec >= 1000)? (usec / 1000) : 1); |
|
||||||
} |
|
||||||
@ -1,5 +1,5 @@ |
|||||||
#ifndef _XMP_OS2_UNISTD_H |
#ifndef XMP_WATCOM_UNISTD_H |
||||||
#define _XMP_OS2_UNISTD_H |
#define XMP_WATCOM_UNISTD_H |
||||||
|
|
||||||
#include <io.h> /* do not want Watcom unistd.h */ |
#include <io.h> /* do not want Watcom unistd.h */ |
||||||
|
|
||||||
@ -0,0 +1,14 @@ |
|||||||
|
#ifdef __OS2__ |
||||||
|
#define INCL_DOSPROCESS |
||||||
|
#include <os2.h> |
||||||
|
void usleep (unsigned long usec) { |
||||||
|
DosSleep (usec / 1000); |
||||||
|
} |
||||||
|
#endif |
||||||
|
|
||||||
|
#ifdef _DOS |
||||||
|
#include <dos.h> |
||||||
|
void usleep (unsigned long usec) { |
||||||
|
delay (usec / 1000); /* doesn't seem to use int 15h. */ |
||||||
|
} |
||||||
|
#endif |
||||||
Loading…
Reference in new issue