aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/windows_h.cxx8
1 files changed, 7 insertions, 1 deletions
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 <iostream>
#include <args.hxx>
-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"});