Add `pread/pwrite` support on `__MACH__` (MacOS) in addition to `__unix__`.

parent 48457767
...@@ -18,7 +18,7 @@ extern "C" { ...@@ -18,7 +18,7 @@ extern "C" {
#if defined(MRB_WITHOUT_IO_PREAD_PWRITE) #if defined(MRB_WITHOUT_IO_PREAD_PWRITE)
# undef MRB_WITH_IO_PREAD_PWRITE # undef MRB_WITH_IO_PREAD_PWRITE
#elif !defined(MRB_WITH_IO_PREAD_PWRITE) #elif !defined(MRB_WITH_IO_PREAD_PWRITE)
# if defined(__unix__) # if defined(__unix__) || defined(__MACH__)
# define MRB_WITH_IO_PREAD_PWRITE # define MRB_WITH_IO_PREAD_PWRITE
# endif # endif
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment