From 17cfe1afd74dbfa5e4ba1401eeca9c80f6011b95 Mon Sep 17 00:00:00 2001 From: Pavel Belikov Date: Fri, 4 May 2018 20:19:33 +0300 Subject: Fix Nargs::min, Nargs::max initializers for min/max macros from --- test/windows_h.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/windows_h.cxx b/test/windows_h.cxx index a9befe1..007a1e7 100644 --- a/test/windows_h.cxx +++ b/test/windows_h.cxx @@ -1,8 +1,14 @@ +#ifdef _WIN32 #include "windows.h" +#else +#define min(a,b) ((a)<(b)?(a):(b)) +#define max(a,b) ((a)>(b)?(a):(b)) +#endif + #include #include -int main() +int main(int argc, char** argv) { args::ArgumentParser parser("This is a test program.", "This goes after the options."); args::HelpFlag help(parser, "help", "Display this help menu", {'h', "help"}); -- cgit v1.2.1