mirror of
https://gitlab.com/80486DX2-66/gists
synced 2024-12-25 17:19:46 +05:30
reverse-ramdisk.c: set POSIX detection
This commit is contained in:
parent
df2d4f3dd9
commit
3bfedd252d
@ -18,7 +18,14 @@ To-Do: error handling on line 184, function fread()
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#if _POSIX_VERSION >= 200809L && defined(_POSIX_SYNCHRONIZED_IO)
|
||||||
|
# include <fcntl.h>
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
|
# define IS_POSIX 1
|
||||||
|
#else
|
||||||
|
# define IS_POSIX 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
# define line_fail(x) do { \
|
# define line_fail(x) do { \
|
||||||
|
Loading…
Reference in New Issue
Block a user