comparison dwcompat.h @ 2644:45a6b33a003a

Linux: Isolate linux/android specific code in #ifdef __linux__ So on unrecognized platforms the functions should just return 0. This should allow Android to get filesystem info through Linux calls.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 16 Aug 2021 06:51:28 +0000
parents 038f83009cdb
children 2b37d9b025cf
comparison
equal deleted inserted replaced
2643:28ca1e59e76f 2644:45a6b33a003a
9 #if !defined(__IOS__) && !defined(__ANDROID__) 9 #if !defined(__IOS__) && !defined(__ANDROID__)
10 #include "dwconfig.h" 10 #include "dwconfig.h"
11 #else 11 #else
12 #define HAVE_DIRENT_H 1 12 #define HAVE_DIRENT_H 1
13 #define HAVE_PIPE 1 13 #define HAVE_PIPE 1
14 #define HAVE_VSNPRINTF 1
14 #endif 15 #endif
15 16
16 /* Attempt to include 64 bit file functions on various unix flavors */ 17 /* Attempt to include 64 bit file functions on various unix flavors */
17 #ifndef _FILE_OFFSET_BITS 18 #ifndef _FILE_OFFSET_BITS
18 #define _FILE_OFFSET_BITS 64 19 #define _FILE_OFFSET_BITS 64