ThomasMonkman / filewatch

File watcher in c++
MIT License
426 stars 70 forks source link

Remove NOMINMAX macro redeclaration Windows warning #28

Closed JLBuenoLopez closed 2 years ago

JLBuenoLopez commented 3 years ago

External libraries that make use of the FileWatch.hpp header file can have already defined the NOMINMAX macro. In this case Windows issues the following warning 'NOMINMAX': macro redefinition. This PR only defines this macro if it has not been defined before.

Signed-off-by: JLBuenoLopez-eProsima joseluisbueno@eprosima.com