diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-12-17 19:13:30 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-12-17 19:13:30 +0100 |
| commit | b9852ff58fb528e505d46f3e68f3ab14b2e32fa7 (patch) | |
| tree | e7564989a5400303fc40441e41d12e8dd5d90fd3 /FL/fl_utf8.h | |
| parent | 5b6d5f9279eb2410bf56cd621c96ac54322ac8bc (diff) | |
Add cross-platform fl_close_fd(int fd) to close a file descriptor
Diffstat (limited to 'FL/fl_utf8.h')
| -rw-r--r-- | FL/fl_utf8.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |
