mirror of
https://gitlab.com/80486DX2-66/gists
synced 2025-04-19 17:49:05 +05:30
freadln.c: test: remove POSIX-specific sleeping
This commit is contained in:
parent
aa22481f13
commit
36fbab62a1
@ -6,8 +6,6 @@
|
||||
*
|
||||
* NOTE: Test: Declare macro NO_SIZE_T_FORMAT when compiling if your compiler
|
||||
* or glibc do not support `%zu` format specifier.
|
||||
* NOTE: Test: Declare macro POSIX when compiling if you're using a POSIX
|
||||
* system.
|
||||
*
|
||||
* TODO: Figure out potential problems
|
||||
* TODO: Add 'flushing' of STDIN (while there are characters, read them) before
|
||||
@ -88,11 +86,7 @@ int freadln(FILE* f, char** output, size_t* length_out) {
|
||||
# include <stdint.h>
|
||||
# include <string.h>
|
||||
|
||||
# if POSIX
|
||||
# include <unistd.h>
|
||||
# define SLEEP_FN sleep
|
||||
# define DO_SLEEP 1
|
||||
# elif defined(_WIN32) || defined(WIN32)
|
||||
# if defined(_WIN32) || defined(WIN32)
|
||||
# include <windows.h>
|
||||
# define SLEEP_FN(x) Sleep((DWORD) (x))
|
||||
# define DO_SLEEP 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user