Commit b98c937c authored by Genevieve Helsel's avatar Genevieve Helsel Committed by Facebook GitHub Bot

make libunwind portability header

Summary: Adds a portability header for later ease of use when deciding to include external_deps libunwind in TARGETS files

Reviewed By: yfeldblum

Differential Revision: D27416623

fbshipit-source-id: fc42f010302b8caa280fdf5cbdf013ed1b23af04
parent 54c929bc
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#if FOLLY_HAVE_LIBUNWIND #if FOLLY_HAVE_LIBUNWIND
// Must be first to ensure that UNW_LOCAL_ONLY is defined // Must be first to ensure that UNW_LOCAL_ONLY is defined
#define UNW_LOCAL_ONLY 1 #define UNW_LOCAL_ONLY 1
#include <libunwind.h> #include <folly/portability/Libunwind.h>
#endif #endif
#if FOLLY_HAVE_BACKTRACE #if FOLLY_HAVE_BACKTRACE
......
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#if __has_include(<libunwind.h>)
#include <libunwind.h> // @manual
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment