]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
*: include fmt/ostream.h if FMT_VERSION >= 9
authorKefu Chai <tchaikov@gmail.com>
Fri, 25 Nov 2022 08:52:29 +0000 (16:52 +0800)
committerKefu Chai <tchaikov@gmail.com>
Fri, 25 Nov 2022 09:08:23 +0000 (17:08 +0800)
commit85928aff5eb9601520ca3e451728001fb25af0de
tree440907379aec3f6c217ce37e1a5fabd438d1f63f
parent25c18c5eba168edaac802ecd538e4976e5662868
*: include fmt/ostream.h if FMT_VERSION >= 9

before this change, we assume that `fmt/ostream.h` is included, and
reference `fmt::ostream_formatter`. this breaks the build if the tree
is compiled on {fmt} v9 and up.

after this change, `fmt/ostream.h` is conditionally included. as the
compiling unit is supposed to include fmt headers before including
headers in this project, we can tell if fmt/ostream.h is needed or not
by checking the FMT_VERSION macro.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/common/ceph_time.h
src/crush/CrushLocation.h
src/include/uuid.h
src/msg/Message.h
src/osd/osd_types_fmt.h