PDI 1.9.0-alpha.2025-01-15

the PDI data interface

fmt.h
1/*******************************************************************************
2 * Copyright (C) 2024 Commissariat a l'energie atomique et aux energies alternatives (CEA)
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of CEA nor the names of its contributors may be used to
13 * endorse or promote products derived from this software without specific
14 * prior written permission.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 * THE SOFTWARE.
23 ******************************************************************************/
24
25// this is a header designed to support fmt provided as either a standalone of embedded in spdlog
26
27#include <spdlog/spdlog.h>
28#if !defined(SPDLOG_FMT_EXTERNAL)
29#ifdef SPDLOG_HEADER_ONLY
30#ifndef FMT_HEADER_ONLY
31#define FMT_HEADER_ONLY
32#endif
33#endif
34#include <spdlog/fmt/bundled/core.h>
35#include <spdlog/fmt/bundled/format.h>
36#if FMT_VERSION >= 110000
37#include <spdlog/fmt/bundled/ranges.h>
38#endif
39#else // SPDLOG_FMT_EXTERNAL is defined - use external fmtlib
40#include <fmt/core.h>
41#include <fmt/format.h>
42#if FMT_VERSION >= 110000
43#include <fmt/ranges.h>
44#endif
45#endif