diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-03 17:12:30 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-03 17:12:30 +0100 |
| commit | 0b2860264914362ec52bc1cc33e6f0686e4cf421 (patch) | |
| tree | d8a0a829b6b8d2066728f4a70c1c6312101340c5 | |
| parent | 784434ad4d509b1fb0082a0b36cf5e8bf56b101a (diff) | |
feat: asio.hpp: do not include all asio headers by default.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
| -rw-r--r-- | include/ocl/asio.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/ocl/asio.hpp b/include/ocl/asio.hpp index 818b5c6..c1e304d 100644 --- a/include/ocl/asio.hpp +++ b/include/ocl/asio.hpp @@ -6,14 +6,18 @@ #ifndef OCL_CORE_ASIO #define OCL_CORE_ASIO +#ifdef OCL_CORE_INCLUDE_ALL_ASIO + +#include <boost/asio.hpp> + +#else + #include <boost/asio/co_spawn.hpp> #include <boost/asio/detached.hpp> #include <boost/asio/io_context.hpp> #include <boost/asio/write.hpp> #include <boost/asio/read.hpp> -#ifdef OCL_CORE_INCLUDE_ALL_ASIO -#include <boost/asio.hpp> #endif #endif |
