HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fmt.h
Go to the documentation of this file.
1 // Copyright 2008-present Contributors to the OpenImageIO project.
2 // SPDX-License-Identifier: BSD-3-Clause
3 // https://github.com/OpenImageIO/oiio
4 
5 #pragma once
6 #define OIIO_FMT_H
7 
8 #include <OpenImageIO/platform.h>
9 
10 // We want the header-only implemention of fmt
11 #ifndef FMT_HEADER_ONLY
12 # define FMT_HEADER_ONLY
13 #endif
14 
15 // Disable fmt exceptions
16 #ifndef FMT_EXCEPTIONS
17 # define FMT_EXCEPTIONS 0
18 #endif
19 
20 // Use the grisu fast floating point formatting for old fmt versions
21 // (irrelevant for >= 7.1).
22 #ifndef FMT_USE_GRISU
23 # define FMT_USE_GRISU 1
24 #endif
25 
26 // fmt 8.1 stopped automatically enabling formatting of anything that supports
27 // ostream output. This breaks a lot! Re-enable this old behavior.
28 #ifndef FMT_DEPRECATED_OSTREAM
29 # define FMT_DEPRECATED_OSTREAM 1
30 #endif
31 
33 #if OIIO_GNUC_VERSION >= 70000
34 # pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
35 #endif
36 #if OIIO_INTEL_LLVM_COMPILER
37 # pragma GCC diagnostic ignored "-Wtautological-constant-compare"
38 #endif
39 
43 
#define OIIO_PRAGMA_WARNING_PUSH
Definition: platform.h:289
#define OIIO_PRAGMA_WARNING_POP
Definition: platform.h:290