From b9fadeb86e4fe5fd9b0d40a87855926d4bb1f62c Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Mon, 4 Aug 2014 15:06:08 -0700 Subject: [PATCH] fix(util/realpath): realpath on cygwin Signed-off-by: Leonardo de Moura --- src/util/realpath.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/util/realpath.cpp b/src/util/realpath.cpp index c1a0fc412..320f18dbc 100644 --- a/src/util/realpath.cpp +++ b/src/util/realpath.cpp @@ -4,6 +4,13 @@ Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ +#if defined(LEAN_CYGWIN) +#if defined(__STRICT_ANSI__) +// hack for using realpath on cygwin +#undef __STRICT_ANSI__ +#endif +#endif + #include #include #include "util/realpath.h"