Commits

Armin Rigo  committed 14394c2

Make the __thread in these files only appear in stm mode.

  • Participants
  • Parent commits bb1e13c
  • Branches stmgc-c4

Comments (0)

Files changed (1)

File rpython/translator/c/src/rtyper.c

 #include <stdlib.h>
 #include <string.h>
 
-__thread struct _RPyString_dump_t {
+#ifdef RPY_STM
+#define __thread_if_stm  __thread
+#else
+#define __thread_if_stm  /* nothing */
+#endif
+
+__thread_if_stm struct _RPyString_dump_t {
 	struct _RPyString_dump_t *next;
 	char data[1];
 } *_RPyString_dump = NULL;