Export snprintf to avoid linking error with liblldb on Windows.
authorChaoren Lin <chaorenl@google.com>
Wed, 12 Aug 2015 01:22:24 +0000 (01:22 +0000)
committerChaoren Lin <chaorenl@google.com>
Wed, 12 Aug 2015 01:22:24 +0000 (01:22 +0000)
Reviewers: zturner, ovyalov

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D11967

llvm-svn: 244710

lldb/include/lldb/Host/windows/win32.h

index 4c9c7f9..6a8c9b7 100644 (file)
@@ -65,7 +65,8 @@ int strcasecmp(const char* s1, const char* s2);
 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