diff options
| author | Tyge Løvset <[email protected]> | 2022-01-11 21:41:21 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-01-11 21:41:21 +0100 |
| commit | f69fb08603aca020e8d855b0469809982bb67322 (patch) | |
| tree | 8bcad69a13e03991786b75d3f858ec400acf350b /include | |
| parent | f6f3580dec78782789fb9e90db28d0a68f0606a8 (diff) | |
| download | STC-modified-f69fb08603aca020e8d855b0469809982bb67322.tar.gz STC-modified-f69fb08603aca020e8d855b0469809982bb67322.zip | |
Fix / simplified unistd.h and renamed some examples that uses arc. (atomic ref. count / shared_ptr)
Diffstat (limited to 'include')
| -rw-r--r-- | include/unistd.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/include/unistd.h b/include/unistd.h index 1ca92980..ace76b5d 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -20,18 +20,17 @@ SOFTWARE. #ifndef STC_UNISTD_H_ #define STC_UNISTD_H_ -#ifndef _WIN32 - -#include_next <unistd.h> - -#else +#ifdef _WIN32 #define WIN32_LEAN_AND_MEAN -#include <windef.h> -VOID WINAPI Sleep(_In_ DWORD dwMilliseconds); +#include <io.h> +#include <process.h> + #define sleep(s) Sleep((s)*1000) -#include <io.h> /* _access() */ +#else + +#include_next <unistd.h> #endif #endif /* STC_UNISTD_H_ */ |
