[Lldb-commits] [PATCH] Make print_cwd buildable on Windows

Zachary Turner zturner at google.com
Fri Feb 27 15:51:45 PST 2015


No worries, I would have changed it for you before submitting anyway :)
 Thanks!

On Fri, Feb 27, 2015 at 3:50 PM Adrian McCarthy <amccarth at google.com> wrote:

> Makes sense.  Changed to _MSC_VER.  Thanks.
>
>
> http://reviews.llvm.org/D7962
>
> Files:
>   test/functionalities/process_launch/print_cwd.cpp
>
> Index: test/functionalities/process_launch/print_cwd.cpp
> ===================================================================
> --- test/functionalities/process_launch/print_cwd.cpp
> +++ test/functionalities/process_launch/print_cwd.cpp
> @@ -1,5 +1,13 @@
>  #include <stdio.h>
> +
> +#ifdef _MSC_VER
> +#define _CRT_NONSTDC_NO_WARNINGS
> +#include <direct.h>
> +#undef getcwd
> +#define getcwd(buffer, length) _getcwd(buffer, length)
> +#else
>  #include <unistd.h>
> +#endif
>
>  int
>  main (int argc, char **argv)
>
> EMAIL PREFERENCES
>   http://reviews.llvm.org/settings/panel/emailpreferences/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150227/1c9b0ec1/attachment.html>


More information about the lldb-commits mailing list