diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2010-12-23 09:22:15 +0100 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2010-12-23 09:22:15 +0100 |
| commit | 98e3b298955557ae10d6682ea33eb8ba8a5447a5 (patch) | |
| tree | 930944b565777406a48c9243e544b2110fcc3c80 /src/git2 | |
| parent | 2c08c3f0742d812bd3790c2541af87634fbb3ab4 (diff) | |
| parent | 51035184ddcc7f5a4437f57e04474b4bb98d8a49 (diff) | |
| download | libgit2-98e3b298955557ae10d6682ea33eb8ba8a5447a5.tar.gz | |
Merge branch 'master' into repo-init
Diffstat (limited to 'src/git2')
| -rw-r--r-- | src/git2/common.h | 2 | ||||
| -rw-r--r-- | src/git2/errors.h | 10 |
2 files changed, 2 insertions, 10 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 diff --git a/src/git2/errors.h b/src/git2/errors.h index 98bce4857..627e67c70 100644 --- a/src/git2/errors.h +++ b/src/git2/errors.h @@ -33,16 +33,6 @@ */ GIT_BEGIN_DECL -/** The git errno. */ -#if defined(GIT_TLS) -GIT_EXTERN_TLS(int) git_errno; - -#elif defined(GIT_HAS_PTHREAD) -# define git_errno (*git__errno_storage()) -GIT_EXTERN(int *) git__errno_storage(void); - -#endif - /** * strerror() for the Git library * @param num The error code to explain |
