From 38ec9ebf0cf5bf81b3d66e5b662655f61eb00834 Mon Sep 17 00:00:00 2001 From: Kang Lin Date: Mon, 22 Jul 2024 14:41:41 +0800 Subject: [PATCH] Use std::min replace min for cross-platform --- common/rdr/HexInStream.cxx | 7 +++---- common/rdr/HexOutStream.cxx | 5 ++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/common/rdr/HexInStream.cxx b/common/rdr/HexInStream.cxx index e23974e198..17154125b3 100644 --- a/common/rdr/HexInStream.cxx +++ b/common/rdr/HexInStream.cxx @@ -24,11 +24,10 @@ #include #include #include +#include using namespace rdr; -static inline int min(int a, int b) {return a #include +#include using namespace rdr; -static inline size_t min(size_t a, size_t b) {return a