proxygen
folly-config.h
Go to the documentation of this file.
1 /*
2  * Copyright 2016 Facebook, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
19 #if !defined(FOLLY_MOBILE)
20 #if defined(__ANDROID__) || \
21  (defined(__APPLE__) && \
22  (TARGET_IPHONE_SIMULATOR || TARGET_OS_SIMULATOR || TARGET_OS_IPHONE))
23 #define FOLLY_MOBILE 1
24 #else
25 #define FOLLY_MOBILE 0
26 #endif
27 #endif // FOLLY_MOBILE
28 
29 #define FOLLY_HAVE_PTHREAD 1
30 #define FOLLY_HAVE_PTHREAD_ATFORK 1
31 
32 #define FOLLY_HAVE_LIBGFLAGS 1
33 /* #undef FOLLY_UNUSUAL_GFLAGS_NAMESPACE */
34 #define FOLLY_GFLAGS_NAMESPACE gflags
35 
36 #define FOLLY_HAVE_LIBGLOG 1
37 
38 #define FOLLY_USE_JEMALLOC 1
39 #define FOLLY_USE_LIBSTDCPP 1
40 
41 #if __has_include(<features.h>)
42 #include <features.h>
43 #endif
44 
45 #define FOLLY_HAVE_MEMRCHR 1
46 #define FOLLY_HAVE_PREADV 1
47 #define FOLLY_HAVE_PWRITEV 1
48 #define FOLLY_HAVE_CLOCK_GETTIME 1
49 #define FOLLY_HAVE_OPENSSL_ASN1_TIME_DIFF 1
50 
51 #define FOLLY_HAVE_IFUNC 1
52 #define FOLLY_HAVE_STD__IS_TRIVIALLY_COPYABLE 1
53 #define FOLLY_HAVE_UNALIGNED_ACCESS 1
54 #define FOLLY_HAVE_VLA 1
55 #define FOLLY_HAVE_WEAK_SYMBOLS 1
56 #define FOLLY_HAVE_LINUX_VDSO 1
57 #define FOLLY_HAVE_MALLOC_USABLE_SIZE 1
58 #define FOLLY_HAVE_INT128_T 1
59 #define FOLLY_SUPPLY_MISSING_INT128_TRAITS 1
60 #define FOLLY_HAVE_WCHAR_SUPPORT 1
61 #define FOLLY_HAVE_EXTRANDOM_SFMT19937 1
62 /* #undef FOLLY_USE_LIBCPP */
63 /* #undef FOLLY_HAVE_XSI_STRERROR_R */
64 #define HAVE_VSNPRINTF_ERRORS 1
65 
66 /* #undef FOLLY_USE_SYMBOLIZER */
67 #define FOLLY_DEMANGLE_MAX_SYMBOL_SIZE 1024
68 
69 /* #undef FOLLY_HAVE_SHADOW_LOCAL_WARNINGS */
70 
71 #define FOLLY_HAVE_LIBLZ4 1
72 #define FOLLY_HAVE_LIBLZMA 1
73 #define FOLLY_HAVE_LIBSNAPPY 1
74 #define FOLLY_HAVE_LIBZ 1
75 /* #undef FOLLY_HAVE_LIBZSTD */
76 /* #undef FOLLY_HAVE_LIBBZ2 */
77 
78 /* #undef FOLLY_ASAN_ENABLED */
79 
80 #define FOLLY_SUPPORT_SHARED_LIBRARY 1