move outside WITH_THREAD conditional
diff --git a/Python/pystate.c b/Python/pystate.c
index 9fc4c12..31b5423 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -726,10 +726,10 @@
         PyEval_SaveThread();
 }
 
+#endif /* WITH_THREAD */
+
 #ifdef __cplusplus
 }
 #endif
 
-#endif /* WITH_THREAD */
-