fix(util/realpath): realpath on cygwin

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-08-04 15:06:08 -07:00
parent 5755ce4bfc
commit b9fadeb86e

View file

@ -4,6 +4,13 @@ Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura Author: Leonardo de Moura
*/ */
#if defined(LEAN_CYGWIN)
#if defined(__STRICT_ANSI__)
// hack for using realpath on cygwin
#undef __STRICT_ANSI__
#endif
#endif
#include <string> #include <string>
#include <cstdlib> #include <cstdlib>
#include "util/realpath.h" #include "util/realpath.h"