summaryrefslogtreecommitdiff
path: root/src/main/interactive_shell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/interactive_shell.cpp')
-rw-r--r--src/main/interactive_shell.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/interactive_shell.cpp b/src/main/interactive_shell.cpp
index f1220b961..2cec42fbf 100644
--- a/src/main/interactive_shell.cpp
+++ b/src/main/interactive_shell.cpp
@@ -37,7 +37,6 @@
# endif /* HAVE_EXT_STDIO_FILEBUF_H */
#endif /* HAVE_LIBREADLINE */
-#include "base/tls.h"
#include "base/output.h"
#include "options/language.h"
#include "options/options.h"
@@ -384,8 +383,8 @@ struct StringPrefix2Less {
};/* struct StringPrefix2Less */
char* commandGenerator(const char* text, int state) {
- static CVC4_THREAD_LOCAL const std::string* rlCommand;
- static CVC4_THREAD_LOCAL set<string>::const_iterator* rlDeclaration;
+ static thread_local const std::string* rlCommand;
+ static thread_local set<string>::const_iterator* rlDeclaration;
const std::string* i = lower_bound(commandsBegin, commandsEnd, text, StringPrefix2Less());
const std::string* j = upper_bound(commandsBegin, commandsEnd, text, StringPrefix1Less());
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback