Skip to content

Commit

Permalink
for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Jul 4, 2024
1 parent 2235089 commit b163855
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ if(ENABLE_FILE_IO_URING)
endif()

if(WIN32)
message(STATUS "windows has file")
add_definitions(-DASIO_HAS_FILE)
add_definitions(-DASIO_HAS_IOCP)
endif()
Expand Down
4 changes: 4 additions & 0 deletions tests/test_corofile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#include <string_view>
#include <thread>

#if defined(ASIO_WINDOWS)
#define ASIO_HAS_FILE 1
#endif

#include "asio/io_context.hpp"
#include "async_simple/coro/Collect.h"
#include "async_simple/coro/SyncAwait.h"
Expand Down

0 comments on commit b163855

Please sign in to comment.