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 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits