common/macros: don't define min and max macros in C++
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 3 Sep 2021 21:31:28 +0000 (17:31 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 14 Oct 2021 21:02:54 +0000 (17:02 -0400)
commit0d79f53ed591cb2e314d2db51c62f3900a956fa3
tree9ad4e342241a20c9ccacc76c1e665f92b8f854a6
parentc30417c11fcaf0406c4cfb3a09373c848a86e291
common/macros: don't define min and max macros in C++

Later in the series, the min macro conflicted with a C++ header file.
Since the min and max macros are not useful in C++ (std::min/std::max
are preferred, don't define them when building a C++ file.  Don't define
min_t and max_t either, they too can be replaced with std::min and
std::max, which are templated / type-safe.

Change-Id: I3d56d325f6508c32baba674c335c3f4ab0ecc582
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/macros.h
This page took 0.025285 seconds and 4 git commands to generate.