Add wxGetFileDescriptor()

This function already existed internally, make it public as it can be
useful and will be used by wxFFile itself in the upcoming commit.
This commit is contained in:
Vadim Zeitlin
2026-09-11 17:36:13 +02:00
parent f854225f8c
commit e88fd128cd
3 changed files with 29 additions and 3 deletions
+15
View File
@@ -543,6 +543,21 @@ enum wxFileKind
///@}
/** @addtogroup group_funcmacro_file */
///@{
/**
Returns the file descriptor for the given @a fp.
@param fp
A valid pointer to a @c FILE.
@returns
The file descriptor for the given @a fp, or -1 on error.
@since 3.3.4
*/
int wxGetFileDescriptor(FILE *fp);
///@}
/** @addtogroup group_funcmacro_file */
///@{
/**