[Lldb-commits] [lldb] r244710 - 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:22:24 PDT 2015
Author: chaoren
Date: Tue Aug 11 20:22:24 2015
New Revision: 244710
URL: http://llvm.org/viewvc/llvm-project?rev=244710&view=rev
Log:
Export snprintf to avoid linking error with liblldb on Windows.
Reviewers: zturner, ovyalov
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D11967
Modified:
lldb/trunk/include/lldb/Host/windows/win32.h
Modified: lldb/trunk/include/lldb/Host/windows/win32.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Host/windows/win32.h?rev=244710&r1=244709&r2=244710&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Host/windows/win32.h (original)
+++ lldb/trunk/include/lldb/Host/windows/win32.h Tue Aug 11 20:22:24 2015
@@ -65,7 +65,8 @@ int strcasecmp(const char* s1, const cha
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
More information about the lldb-commits
mailing list