Fix Build: folly/synchronization/test/ParkingLotBenchmark.cpp (sign-compare, unused...
[folly.git] / folly / SingletonStackTrace.cpp
index d5b67ee047b22922689c73b0c81e1587ed120274..4eba8461ab3ccd86e228a691a6d52ba0e8877de5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2015-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.
  */
+
+#include <folly/portability/Config.h>
+
+#ifdef FOLLY_USE_SYMBOLIZER
 #include <folly/Singleton.h>
-#include <folly/experimental/symbolizer/Symbolizer.h>
+#include <folly/experimental/symbolizer/Symbolizer.h> // @manual
 
 namespace folly {
 
@@ -52,6 +56,6 @@ SetStackTraceGetter setStackTraceGetter;
 #else
 SetStackTraceGetter __attribute__((__init_priority__(101))) setStackTraceGetter;
 #endif
-}
-
-}
+} // namespace
+} // namespace folly
+#endif