add if using single header

This commit is contained in:
xgdgsc 2020-09-23 16:05:42 +08:00 committed by GitHub
parent 8c0d3c7c23
commit e1d1866384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>