[Lldb-commits] [PATCH] D11967: Export snprintf to avoid linking error with liblldb on Windows.

Chaoren Lin via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 11 16:45:22 PDT 2015

chaoren created this revision.
chaoren added reviewers: zturner, ovyalov.
chaoren added a subscriber: lldb-commits.



Index: include/lldb/Host/windows/win32.h
--- include/lldb/Host/windows/win32.h
+++ include/lldb/Host/windows/win32.h
@@ -65,7 +65,8 @@
 int strncasecmp(const char* s1, const char* s2, size_t n);
 #if _MSC_VER < 1900
-int snprintf(char *buffer, size_t count, const char *format, ...);
+int __declspec(dllexport)
+snprintf(char *buffer, size_t count, const char *format, ...);
 #define STDIN_FILENO  0

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11967.31884.patch
Type: text/x-patch
Size: 480 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150811/5d5ca4da/attachment.bin>

More information about the lldb-commits mailing list