[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 18:23:11 PDT 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL244710: Export snprintf to avoid linking error with liblldb on Windows. (authored by chaoren).

Changed prior to commit:
  http://reviews.llvm.org/D11967?vs=31884&id=31896#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D11967

Files:
  lldb/trunk/include/lldb/Host/windows/win32.h

Index: lldb/trunk/include/lldb/Host/windows/win32.h
===================================================================
--- lldb/trunk/include/lldb/Host/windows/win32.h
+++ lldb/trunk/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, ...);
 #endif
 
 #define STDIN_FILENO  0


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11967.31896.patch
Type: text/x-patch
Size: 513 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150812/23881f3c/attachment.bin>


More information about the lldb-commits mailing list