mirror of
https://github.com/vimpunk/mio.git
synced 2025-12-06 08:46:51 +08:00
commit
0a2b6cbd88
@ -59,6 +59,7 @@ Moreover, in each case, you can provide either some string type for the file's p
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <mio/mmap.hpp>
|
||||
// #include <mio/mio.hpp> if using single header
|
||||
#include <algorithm>
|
||||
|
||||
int main()
|
||||
@ -78,6 +79,7 @@ for functions where character strings are expected (e.g. path parameters).
|
||||
|
||||
```c++
|
||||
#include <mio/mmap.hpp>
|
||||
// #include <mio/mio.hpp> if using single header
|
||||
#include <system_error> // for std::error_code
|
||||
#include <cstdio> // for std::printf
|
||||
#include <cassert>
|
||||
|
||||
@ -14,12 +14,12 @@ if(WIN32)
|
||||
add_test(NAME mio.unicode.test COMMAND mio.test)
|
||||
|
||||
add_executable(mio.fullwinapi.test test.cpp)
|
||||
target_link_libraries(mio.fullwinapi.test
|
||||
target_link_libraries(mio.fullwinapi.test
|
||||
PRIVATE mio::mio_full_winapi)
|
||||
add_test(NAME mio.fullwinapi.test COMMAND mio.fullwinapi.test)
|
||||
|
||||
add_executable(mio.fullwinapi.test test.cpp)
|
||||
target_link_libraries(mio.fullwinapi.test
|
||||
add_executable(mio.minwinapi.test test.cpp)
|
||||
target_link_libraries(mio.minwinapi.test
|
||||
PRIVATE mio::mio_min_winapi)
|
||||
add_test(NAME mio.minwinapi.test COMMAND mio.minwinapi.test)
|
||||
endif()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user