From b9852ff58fb528e505d46f3e68f3ab14b2e32fa7 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sat, 17 Dec 2022 19:13:30 +0100 Subject: Add cross-platform fl_close_fd(int fd) to close a file descriptor --- FL/fl_utf8.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'FL') diff --git a/FL/fl_utf8.h b/FL/fl_utf8.h index 76c661c73..7a7489b38 100644 --- a/FL/fl_utf8.h +++ b/FL/fl_utf8.h @@ -179,6 +179,9 @@ FL_EXPORT int fl_open(const char *fname, int oflags, ...); FL_EXPORT int fl_open_ext(const char *fname, int binary, int oflags, ...); +/* Portable wrapper around unix-style close() function */ +FL_EXPORT int fl_close_fd(int fd); + /* OD: Portable UTF-8 aware unlink wrapper */ FL_EXPORT int fl_unlink(const char *fname); -- cgit v1.2.3