Add cross-platform fl_close_fd(int fd) to close a file descriptor

This commit is contained in:
ManoloFLTK
2022-12-17 19:13:30 +01:00
parent 5b6d5f9279
commit b9852ff58f
2 changed files with 12 additions and 1 deletions
+3
View File
@@ -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);