Skip to content

Commit

Permalink
deprecate win9x dir
Browse files Browse the repository at this point in the history
  • Loading branch information
MacroModel committed Nov 29, 2024
1 parent a97f856 commit ffcfbaa
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions include/fast_io_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,18 @@ Special file type region. They are usually not used for I/O but for other purpos
However, they are still capable of doing I/O.
*/

using dir_file = directory_file_wrapper<
using dir_file
#if ((defined(_WIN32) || defined(__CYGWIN__)) && defined(_WIN32_WINDOWS)) && \
!defined(FAST_IO_NO_WARNING_DEPRECATED_WIN9X_FILESYSTEMS)
[[deprecated("win9x_dir may be attacked by toctou. Please use nt api on Windows NT, or define macro FAST_IO_NO_WARNING_DEPRECATED_WIN9X_FILESYSTEMS to eliminate alerts.")]]
#endif
= directory_file_wrapper<
#if ((defined(_WIN32) || defined(__CYGWIN__)) && defined(_WIN32_WINDOWS))
win9x_dir
win9x_dir
#else
basic_native_file<char>
basic_native_file<char>
#endif
>;
>;

/*
template region
Expand Down

0 comments on commit ffcfbaa

Please sign in to comment.