From 608a2f8ebf8400b13ba57982879e75437e543310 Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Sat, 11 Jan 2014 00:43:52 +0200 Subject: [PATCH] force DUK_CMDLINE_BAREBONES on Windows to avoid header issues --- examples/cmdline/duk_cmdline.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/cmdline/duk_cmdline.c b/examples/cmdline/duk_cmdline.c index 667098b0..e35adec2 100644 --- a/examples/cmdline/duk_cmdline.c +++ b/examples/cmdline/duk_cmdline.c @@ -4,6 +4,14 @@ * For maximum portability, compile with -DDUK_CMDLINE_BAREBONES */ +#if defined(_WIN32) || defined(_WIN64) || defined(WIN32) || \ + defined(__WIN32__) || defined(__TOS_WIN__) || defined(__WINDOWS__) +#ifndef DUK_CMDLINE_BAREBONES +/* Force barebones mode on Windows. */ +#define DUK_CMDLINE_BAREBONES +#endif +#endif + #ifdef DUK_CMDLINE_BAREBONES #define NO_READLINE #define NO_RLIMIT