commons 0.1.5
Header-only C++23 library of common/shared types for the C++ libraries
Loading...
Searching...
No Matches
config.hpp
Go to the documentation of this file.
1#pragma once
2
17
18// nlohmann/json integration -------------------------------------------------
19#if !defined(COMMONS_WITH_NLOHMANN_JSON)
20#if defined(__has_include)
21#if __has_include(<nlohmann/json.hpp>)
22#define COMMONS_WITH_NLOHMANN_JSON 1
23#else
24#define COMMONS_WITH_NLOHMANN_JSON 0
25#endif
26#else
27#define COMMONS_WITH_NLOHMANN_JSON 0
28#endif
29#endif
30
31// ulid integration ----------------------------------------------------------
32#if !defined(COMMONS_WITH_ULID)
33#if defined(__has_include)
34#if __has_include(<ulid/ulid.h>)
35#define COMMONS_WITH_ULID 1
36#else
37#define COMMONS_WITH_ULID 0
38#endif
39#else
40#define COMMONS_WITH_ULID 0
41#endif
42#endif