diff options
author | Vicent Marti <tanoku@gmail.com> | 2010-12-22 22:51:24 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2010-12-22 22:51:24 +0200 |
commit | 11f6646f032c669170453e8e359ac337fa9abbb7 (patch) | |
tree | c44d573198298c6a5adde6140f6623f9b1a7f108 /src/git2/common.h | |
parent | 2a18a792e3674b24f2d6312c039571c64f75dacd (diff) | |
download | libgit2-11f6646f032c669170453e8e359ac337fa9abbb7.tar.gz |
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>
Diffstat (limited to 'src/git2/common.h')
-rw-r--r-- | src/git2/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/git2/common.h b/src/git2/common.h index 9d014c038..bbeec4128 100644 --- a/src/git2/common.h +++ b/src/git2/common.h @@ -55,6 +55,8 @@ __attribute__((visibility("default"))) \ GIT_TLS \ type +#elif defined(_MSC_VER) +# define GIT_EXTERN_TLS(type) __declspec(dllexport) GIT_TLS type #else # define GIT_EXTERN_TLS(type) extern GIT_TLS type #endif |