summaryrefslogtreecommitdiff
path: root/src/support/threads.h
diff options
context:
space:
mode:
authorMorris Hafner <mmha@users.noreply.github.com>2017-03-29 19:20:25 +0200
committerDerek Schuff <dschuff@chromium.org>2017-03-29 10:20:25 -0700
commit114e4cec95f6b0d1aafd9d7a976b0fb2c0fddc36 (patch)
tree28f8b1957a2d81494780e30f11b21cdb8e6faede /src/support/threads.h
parentf1c992f946438ba8785c418e769ee024606fdde0 (diff)
downloadbinaryen-114e4cec95f6b0d1aafd9d7a976b0fb2c0fddc36.tar.gz
binaryen-114e4cec95f6b0d1aafd9d7a976b0fb2c0fddc36.tar.bz2
binaryen-114e4cec95f6b0d1aafd9d7a976b0fb2c0fddc36.zip
Fix build with gcc 7 (#957)
1. Add a missing <functional> include 2. Put the // fallthrough comment after the closing bracket so the compiler does not emit a implicit fallthrough warning.
Diffstat (limited to 'src/support/threads.h')
-rw-r--r--src/support/threads.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/support/threads.h b/src/support/threads.h
index 45c09e602..ec726370e 100644
--- a/src/support/threads.h
+++ b/src/support/threads.h
@@ -23,6 +23,7 @@
#include <atomic>
#include <condition_variable>
+#include <functional>
#include <memory>
#include <mutex>
#include <thread>