give all folly exception types default visibility
[folly.git] / folly / executors / task_queue / BlockingQueue.h
index 49280954c5c112cddf682d09bde5740266110732..99147ad6443a0e18f7c43e7e1bcf9ffebc3b42e5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2017 Facebook, Inc.
+ * Copyright 2017-present Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 #pragma once
 
 #include <exception>
@@ -21,6 +20,8 @@
 
 #include <glog/logging.h>
 
+#include <folly/CPortability.h>
+
 namespace folly {
 
 // Some queue implementations (for example, LifoSemMPMCQueue or
@@ -28,7 +29,7 @@ namespace folly {
 // non-blocking (THROW) behaviors.
 enum class QueueBehaviorIfFull { THROW, BLOCK };
 
-class QueueFullException : public std::runtime_error {
+class FOLLY_EXPORT QueueFullException : public std::runtime_error {
   using std::runtime_error::runtime_error; // Inherit constructors.
 };