https://github.com/osquery/osquery logo
Title
c

Chris Broome

09/12/2019, 1:11 PM
general c++ question/confusion. in
osquery/filesystem/windows/fileops.cpp
there are 2 macros defined for
min
and
max
. What’s the reason for doing that instead of using, say,
std::min
and
std::max
?
s

sharvil

09/12/2019, 1:24 PM
AFAIK I think it’s because we include
windows.h
which has macros for
min
and
max
and that could interfere with STL