move outside WITH_THREAD conditional
diff --git a/Python/pystate.c b/Python/pystate.c
index 70ade98..d7d127b 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -653,10 +653,10 @@
         PyEval_SaveThread();
 }
 
+#endif /* WITH_THREAD */
+
 #ifdef __cplusplus
 }
 #endif
 
-#endif /* WITH_THREAD */
-