Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9fc43358 authored by Elliott Hughes's avatar Elliott Hughes Committed by Gerrit Code Review
Browse files

Merge "Extra Win32 compatibility."

parents 6c6f3967 714196d0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -35,6 +35,12 @@ static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset)

#endif /* __APPLE__ */

#if defined(_WIN32)
#define O_CLOEXEC 0
#define O_NOFOLLOW 0
#define DEFFILEMODE 0666
#endif /* _WIN32 */

#if HAVE_PRINTF_ZD
#  define ZD "%zd"
#  define ZD_TYPE ssize_t