Commit 11f6646f by Vicent Marti

Export TLS symbols properly in Win32

There was no export definition for GIT_EXTERN_TLS() under MSVC.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
parent 2a18a792
...@@ -55,6 +55,8 @@ ...@@ -55,6 +55,8 @@
__attribute__((visibility("default"))) \ __attribute__((visibility("default"))) \
GIT_TLS \ GIT_TLS \
type type
#elif defined(_MSC_VER)
# define GIT_EXTERN_TLS(type) __declspec(dllexport) GIT_TLS type
#else #else
# define GIT_EXTERN_TLS(type) extern GIT_TLS type # define GIT_EXTERN_TLS(type) extern GIT_TLS type
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment