File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 2626
2727/* !
2828 * @def RESTINIO_OS_UNIX
29- * @brief A marker for Unix platforms.
29+ * @brief A marker for Unix platforms, but not macOS/iOS.
30+ */
31+
32+ /* !
33+ * @def RESTINIO_OS_APPLE
34+ * @brief A marker for macOS/iOS.
3035 */
3136
3237#if defined( _WIN64 )
4550 #define RESTINIO_OS_UNIX
4651#endif
4752
53+ #if defined(__APPLE__)
54+ #define RESTINIO_OS_APPLE
55+ #endif
56+
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ make_error_code( const Error_Type & e ) noexcept
100100
101101#if defined(RESTINIO_OS_WINDOWS)
102102 #include " sendfile_operation_win.ipp"
103- #elif defined(RESTINIO_OS_UNIX)
103+ #elif defined(RESTINIO_OS_UNIX) || defined(RESTINIO_OS_APPLE)
104104 #include " sendfile_operation_posix.ipp"
105105#else
106106 #if defined (RESTINIO_ENABLE_SENDFILE_DEFAULT_IMPL)
Original file line number Diff line number Diff line change 3232
3333#if defined(RESTINIO_OS_WINDOWS)
3434 #include " sendfile_defs_win.hpp"
35- #elif defined(RESTINIO_OS_UNIX)
35+ #elif defined(RESTINIO_OS_UNIX) || defined(RESTINIO_OS_APPLE)
3636 #include " sendfile_defs_posix.hpp"
3737#else
3838 #if defined (RESTINIO_ENABLE_SENDFILE_DEFAULT_IMPL)
You can’t perform that action at this time.
0 commit comments