summaryrefslogtreecommitdiff
path: root/src/git/thread-utils.h
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2008-11-29 19:20:07 +0000
committerShawn O. Pearce <spearce@spearce.org>2008-12-02 09:23:18 -0800
commit1764376034ce4f4c899f141c121e1be9167d1e83 (patch)
treed8b9e83ad587491de5e0ce5e105d6732da7efd02 /src/git/thread-utils.h
parent80133dad8aa9b6d8bec7050a77d603c53ecd8512 (diff)
downloadlibgit2-1764376034ce4f4c899f141c121e1be9167d1e83.tar.gz
Use __CHECKER__ to detect when sparse is running
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Acked-by: Andreas Ericsson <ae@op5.se> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'src/git/thread-utils.h')
-rw-r--r--src/git/thread-utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/git/thread-utils.h b/src/git/thread-utils.h
index 7ce66fdc1..bc4153d7a 100644
--- a/src/git/thread-utils.h
+++ b/src/git/thread-utils.h
@@ -23,7 +23,7 @@
#endif
/* sparse doesn't grok thread-local variables */
-#ifdef SPARSE_IS_RUNNING
+#if defined(__CHECKER__)
# undef GIT_HAS_TLS
# undef GIT_TLS
# define GIT_TLS