[Lldb-commits] [PATCH] Make print_cwd buildable on Windows
Zachary Turner
zturner at google.com
Mon Mar 2 10:36:15 PST 2015
REPOSITORY
rL LLVM
http://reviews.llvm.org/D7962
Files:
lldb/trunk/test/functionalities/process_launch/print_cwd.cpp
Index: lldb/trunk/test/functionalities/process_launch/print_cwd.cpp
===================================================================
--- lldb/trunk/test/functionalities/process_launch/print_cwd.cpp
+++ lldb/trunk/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 --------------
A non-text attachment was scrubbed...
Name: D7962.21016.patch
Type: text/x-patch
Size: 521 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150302/f821e18a/attachment.bin>
More information about the lldb-commits
mailing list