summaryrefslogtreecommitdiff
path: root/include/git2/common.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-11-16 14:09:44 +0100
committerVicent Marti <tanoku@gmail.com>2011-11-16 14:09:44 +0100
commita15c550db8b0552902e58c9bf2194005fb7fb0e9 (patch)
treeb33084b89561613dc8c9592c18b1dedcc8b06375 /include/git2/common.h
parentb0b2dd5ecc2d309875e8dcd744fa5ff0a55b8fe5 (diff)
downloadlibgit2-a15c550db8b0552902e58c9bf2194005fb7fb0e9.tar.gz
threads: Fix the shared global state with TLS
See `global.c` for a description of what we're doing. When libgit2 is built with GIT_THREADS support, the threading system must be explicitly initialized with `git_threads_init()`.
Diffstat (limited to 'include/git2/common.h')
-rw-r--r--include/git2/common.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/git2/common.h b/include/git2/common.h
index ef279eac1..eee918a23 100644
--- a/include/git2/common.h
+++ b/include/git2/common.h
@@ -7,7 +7,6 @@
#ifndef INCLUDE_git_common_h__
#define INCLUDE_git_common_h__
-#include "thread-utils.h"
#include <time.h>
#include <stdlib.h>
@@ -38,18 +37,6 @@
# define GIT_EXTERN(type) extern type
#endif
-/** Declare a public TLS symbol exported for application use. */
-#if __GNUC__ >= 4
-# define GIT_EXTERN_TLS(type) extern \
- __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
-
/** Declare a function as always inlined. */
#if defined(_MSC_VER)
# define GIT_INLINE(type) static __inline type