diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-04 06:14:14 -0500 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-04 06:14:14 -0500 |
| commit | e85b8a1cf1624a9cbf3d719dd202ad57d43c2f4b (patch) | |
| tree | 89f7c1d07eed253f97141102041d70b12dfcd48e /include/ocl/detail | |
| parent | d43fed8fb9eb369adc70a57bc2a9552d36485241 (diff) | |
chore: modularize OCL to OCL.core, upcoming OCL.fix
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/ocl/detail')
| -rw-r--r-- | include/ocl/detail/config.hpp | 38 | ||||
| -rw-r--r-- | include/ocl/detail/net_config.hpp | 14 |
2 files changed, 52 insertions, 0 deletions
diff --git a/include/ocl/detail/config.hpp b/include/ocl/detail/config.hpp new file mode 100644 index 0000000..c3c01ea --- /dev/null +++ b/include/ocl/detail/config.hpp @@ -0,0 +1,38 @@ +/* + * File: detail/config.hpp + * Purpose: Config file of the OCL.CORE library. + * Author: Amlal El Mahrouss (amlal@nekernel.org) + * Copyright 2025, Amlal El Mahrouss, licensed under the Boost Software License. + */ + +#pragma once + +#include <boost/config.hpp> +#include <boost/core/addressof.hpp> +#include <boost/core/nvp.hpp> +#include <boost/core/demangle.hpp> +#include <boost/core/null_deleter.hpp> +#include <boost/container/allocator.hpp> +#include <boost/assert.hpp> + +#include <cassert> + +#include <sys/types.h> +#include <unistd.h> + +#define OCL_DEPRECATED() [[deprecated]] +#define OCL_DEPRECATED_MSG(MSG) [[deprecated(MSG)]] + +#ifdef __cplusplus +#define OCL_DECL extern "C" +/// DLL/Dylib/So specific macro. +#define OCL_EXPORT_DECL extern "C" BOOST_SYMBOL_EXPORT +#else +#define OCL_DECL +#define OCL_EXPORT_DECL +#endif + +#ifdef _WIN32 +#define OCL_USE_CRLF_ENDINGS 1 +#define OCL_WINDOWS 1 +#endif
\ No newline at end of file diff --git a/include/ocl/detail/net_config.hpp b/include/ocl/detail/net_config.hpp new file mode 100644 index 0000000..be25d1f --- /dev/null +++ b/include/ocl/detail/net_config.hpp @@ -0,0 +1,14 @@ + +#pragma once + +#include <stdexcept> +#include <unistd.h> +#include <arpa/inet.h> +#include <sys/socket.h> +#include <string> +#include <cstddef> +#include <cstring> + +#ifdef OCL_WINDOWS +#error !!! "Windows is not supported yet for <unique_socket>" !!! +#endif // OCL_WINDOWS |
