Fix some copyright lines in folly/detail/ and folly/test/
[folly.git] / folly / experimental / EnvUtil.h
index 3ab3b16af726bf35aa4add3cdcca6da28318cf15..101966f5bda25cbde61387b7a3da498372d3e077 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.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 #pragma once
 
-#include <folly/Memory.h>
 #include <map>
 #include <string>
 #include <unordered_map>
 #include <vector>
 
+#include <folly/CPortability.h>
+#include <folly/Memory.h>
+
 namespace folly {
 namespace experimental {
 
@@ -87,7 +88,7 @@ struct EnvironmentState {
   EnvType env_;
 };
 
-struct MalformedEnvironment : std::runtime_error {
+struct FOLLY_EXPORT MalformedEnvironment : std::runtime_error {
   using std::runtime_error::runtime_error;
 };
 } // namespace experimental
@@ -98,7 +99,7 @@ namespace test {
 // of its destruction.
 struct EnvVarSaver {
   EnvVarSaver()
-      : state_(make_unique<experimental::EnvironmentState>(
+      : state_(std::make_unique<experimental::EnvironmentState>(
             experimental::EnvironmentState::fromCurrentEnvironment())) {}
 
   EnvVarSaver(EnvVarSaver&& other) noexcept : state_(std::move(other.state_)) {}