summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2023-05-27 18:48:47 +0900
committerGitHub <noreply@github.com>2023-05-27 18:48:47 +0900
commitbf1bc5362e5edb2321665e9ce7c5c4e2e7d9f5ef (patch)
tree6cd17e5c5f6caafc4471ce3e70b1599403107099 /include
parentc37ebfe08fb43242687e58a68628ade8101973d7 (diff)
Improve `read`/`write`/`pread`/`pwrite` consistency. (#7860)
* Documentation consistency. * Improve consistency of `pread`/`pwrite` implementation when given length. * Remove HAVE_PREAD / HAVE_PWRITE - it is no longer optional.
Notes
Notes: Merged-By: ioquatix <samuel@codeotaku.com>
Diffstat (limited to 'include')
-rw-r--r--include/ruby/win32.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h
index 67cc5e70b3..dfb56f4182 100644
--- a/include/ruby/win32.h
+++ b/include/ruby/win32.h
@@ -147,16 +147,10 @@ typedef int clockid_t;
#define open rb_w32_uopen
#define close(h) rb_w32_close(h)
#define fclose(f) rb_w32_fclose(f)
-
#define read(f, b, s) rb_w32_read(f, b, s)
#define write(f, b, s) rb_w32_write(f, b, s)
-
-#define HAVE_PREAD
#define pread(f, b, s, o) rb_w32_pread(f, b, s, o)
-
-#define HAVE_PWRITE
#define pwrite(f, b, s, o) rb_w32_pwrite(f, b, s, o)
-
#define getpid() rb_w32_getpid()
#undef HAVE_GETPPID
#define HAVE_GETPPID 1