[Lldb-commits] [PATCH] Make print_cwd buildable on Windows
Adrian McCarthy
amccarth at google.com
Fri Feb 27 14:28:07 PST 2015
Hi zturner,
Original code relied on POSIX feature. This change doesn't completely enable process_launch tests on Windows, but it's another step in the chain.
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 _WIN32
+#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 --------------
A non-text attachment was scrubbed...
Name: D7962.20903.patch
Type: text/x-patch
Size: 486 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150227/7d6e6ed6/attachment.bin>
More information about the lldb-commits
mailing list