From 12e1e0a8d87c007816c46d1b51feff5916613496 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 14 Sep 2017 11:16:25 +0300 Subject: Fix clashing C min/max macros with C++ functions on Windows --- libpkgconf/stdinc.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libpkgconf/stdinc.h b/libpkgconf/stdinc.h index f75db66..82939a5 100644 --- a/libpkgconf/stdinc.h +++ b/libpkgconf/stdinc.h @@ -35,6 +35,13 @@ #ifdef _WIN32 # define WIN32_LEAN_AND_MEAN + +/* + * Add to avoid clashing min/max macros with C++ min/max functions (issue #137 + * is reported). + */ +# define NOMINMAX // No min and max macros. + # include # include # define PATH_DEV_NULL "nul" -- cgit v1.1