folly/folly/folly-config.h

/*
 * Copyright (c) Meta Platforms, Inc. and 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

#ifdef __APPLE__
#include <TargetConditionals.h> // @manual
#endif

#if !defined(FOLLY_MOBILE)
#if defined(__ANDROID__) || \
    (defined(__APPLE__) &&  \
     (TARGET_IPHONE_SIMULATOR || TARGET_OS_SIMULATOR || TARGET_OS_IPHONE))
#define FOLLY_MOBILE
#else
#define FOLLY_MOBILE
#endif
#endif // FOLLY_MOBILE

#define FOLLY_HAVE_PTHREAD
#define FOLLY_HAVE_PTHREAD_ATFORK

#define FOLLY_HAVE_LIBGFLAGS
/* #undef FOLLY_UNUSUAL_GFLAGS_NAMESPACE */
#define FOLLY_GFLAGS_NAMESPACE

#define FOLLY_HAVE_LIBGLOG

/* #undef FOLLY_USE_JEMALLOC */

#if __has_include(<features.h>)
#include <features.h>
#endif

/* #undef FOLLY_HAVE_ACCEPT4 */
#define FOLLY_HAVE_GETRANDOM
#define FOLLY_HAVE_PREADV
#define FOLLY_HAVE_PWRITEV
#define FOLLY_HAVE_CLOCK_GETTIME
/* #undef FOLLY_HAVE_PIPE2 */

/* #undef FOLLY_HAVE_IFUNC */
#define FOLLY_HAVE_UNALIGNED_ACCESS
#define FOLLY_HAVE_VLA
#define FOLLY_HAVE_WEAK_SYMBOLS
/* #undef FOLLY_HAVE_LINUX_VDSO */
/* #undef FOLLY_HAVE_MALLOC_USABLE_SIZE */
/* #undef FOLLY_HAVE_INT128_T */
#define FOLLY_HAVE_WCHAR_SUPPORT
/* #undef FOLLY_HAVE_EXTRANDOM_SFMT19937 */
/* #undef HAVE_VSNPRINTF_ERRORS */

/* #undef FOLLY_HAVE_LIBUNWIND */
#define FOLLY_HAVE_DWARF
/* #undef FOLLY_HAVE_ELF */
#define FOLLY_HAVE_SWAPCONTEXT
#define FOLLY_HAVE_BACKTRACE
/* #undef FOLLY_USE_SYMBOLIZER */
#define FOLLY_DEMANGLE_MAX_SYMBOL_SIZE

/* #undef FOLLY_HAVE_SHADOW_LOCAL_WARNINGS */

#define FOLLY_HAVE_LIBLZ4
#define FOLLY_HAVE_LIBLZMA
#define FOLLY_HAVE_LIBSNAPPY
#define FOLLY_HAVE_LIBZ
#define FOLLY_HAVE_LIBZSTD
#define FOLLY_HAVE_LIBBZ2

#define FOLLY_LIBRARY_SANITIZE_ADDRESS

/* #undef FOLLY_SUPPORT_SHARED_LIBRARY */

#define FOLLY_HAVE_LIBRT