Author: zturner Date: Mon Mar 2 12:33:50 2015 New Revision: 230983 URL: http://llvm.org/viewvc/llvm-project?rev=230983&view=rev Log: [Windows] Fix getcwd() on Windows.
Windows doesn't define getcwd(), so this test executable failed to compile. Patch by Adrian McCarthy Differential Revision: http://reviews.llvm.org/D7962 Modified: lldb/trunk/test/functionalities/process_launch/print_cwd.cpp Modified: lldb/trunk/test/functionalities/process_launch/print_cwd.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/process_launch/print_cwd.cpp?rev=230983&r1=230982&r2=230983&view=diff ============================================================================== --- lldb/trunk/test/functionalities/process_launch/print_cwd.cpp (original) +++ lldb/trunk/test/functionalities/process_launch/print_cwd.cpp Mon Mar 2 12:33:50 2015 @@ -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) _______________________________________________ lldb-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits
