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