summaryrefslogtreecommitdiff
path: root/c/misc_thread_common.h
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2016-01-03 14:55:22 +0100
committerArmin Rigo <arigo@tunes.org>2016-01-03 14:55:22 +0100
commit550cdc132759e268a78fe5bc04d3fdda0ea9cdf1 (patch)
tree3dcda51fba1f8d52703111fa3090b7a24e17022f /c/misc_thread_common.h
parenta96cc48b5318ced90cc18a7a21d60682228ae59d (diff)
downloadcffi-550cdc132759e268a78fe5bc04d3fdda0ea9cdf1.tar.gz
Remove this field if it's not used
Diffstat (limited to 'c/misc_thread_common.h')
-rw-r--r--c/misc_thread_common.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/c/misc_thread_common.h b/c/misc_thread_common.h
index 779de0b..2dacf12 100644
--- a/c/misc_thread_common.h
+++ b/c/misc_thread_common.h
@@ -9,9 +9,11 @@ struct cffi_tls_s {
had already a thread state provided by CPython. */
PyThreadState *local_thread_state;
+#ifndef USE__THREAD
/* The saved errno. If the C compiler supports '__thread', then
- we use that instead; this value is not used at all in this case. */
+ we use that instead. */
int saved_errno;
+#endif
#ifdef MS_WIN32
/* The saved lasterror, on Windows. */