diff options
| author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2008-11-29 19:20:07 +0000 |
|---|---|---|
| committer | Shawn O. Pearce <spearce@spearce.org> | 2008-12-02 09:23:18 -0800 |
| commit | 1764376034ce4f4c899f141c121e1be9167d1e83 (patch) | |
| tree | d8b9e83ad587491de5e0ce5e105d6732da7efd02 /src/git | |
| parent | 80133dad8aa9b6d8bec7050a77d603c53ecd8512 (diff) | |
| download | libgit2-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')
| -rw-r--r-- | src/git/thread-utils.h | 2 |
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 |
