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 | |
| 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)
| -rw-r--r-- | examples/arc_containers.c (renamed from examples/sptr_to_maps.c) | 0 | ||||
| -rw-r--r-- | examples/arc_demo.c (renamed from examples/sptr_demo.c) | 0 | ||||
| -rw-r--r-- | examples/arcvec_erase.c (renamed from examples/sptr_erase.c) | 0 | ||||
| -rw-r--r-- | examples/music_arc.c (renamed from examples/sptr_music.c) | 0 | ||||
| -rw-r--r-- | examples/person_arc.c (renamed from examples/sptr.c) | 0 | ||||
| -rw-r--r-- | examples/threads_demo.c (renamed from examples/sptr_threads.c) | 0 | ||||
| -rw-r--r-- | include/unistd.h | 15 |
7 files changed, 7 insertions, 8 deletions
diff --git a/examples/sptr_to_maps.c b/examples/arc_containers.c index 0873d297..0873d297 100644 --- a/examples/sptr_to_maps.c +++ b/examples/arc_containers.c diff --git a/examples/sptr_demo.c b/examples/arc_demo.c index 8626e2d4..8626e2d4 100644 --- a/examples/sptr_demo.c +++ b/examples/arc_demo.c diff --git a/examples/sptr_erase.c b/examples/arcvec_erase.c index d40d8fe7..d40d8fe7 100644 --- a/examples/sptr_erase.c +++ b/examples/arcvec_erase.c diff --git a/examples/sptr_music.c b/examples/music_arc.c index 42bb3455..42bb3455 100644 --- a/examples/sptr_music.c +++ b/examples/music_arc.c diff --git a/examples/sptr.c b/examples/person_arc.c index 0c22bd68..0c22bd68 100644 --- a/examples/sptr.c +++ b/examples/person_arc.c diff --git a/examples/sptr_threads.c b/examples/threads_demo.c index a31c2662..a31c2662 100644 --- a/examples/sptr_threads.c +++ b/examples/threads_demo.c 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_ */ |
