Add Tearable, for concurrently-modified non-atomic objects.
[folly.git] / CMake / folly-config.h.cmake
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 #cmakedefine FOLLY_HAVE_PTHREAD 1
20 #cmakedefine FOLLY_HAVE_PTHREAD_ATFORK 1
21
22 #define FOLLY_HAVE_LIBGFLAGS 1
23 #define FOLLY_UNUSUAL_GFLAGS_NAMESPACE 1
24 #define FOLLY_GFLAGS_NAMESPACE google
25
26 #cmakedefine FOLLY_HAVE_MALLOC_H 1
27 #cmakedefine FOLLY_HAVE_BITS_FUNCTEXCEPT_H 1
28
29 #cmakedefine FOLLY_HAVE_MEMRCHR 1
30 #cmakedefine FOLLY_HAVE_PREADV 1
31 #cmakedefine FOLLY_HAVE_PWRITEV 1
32 #cmakedefine FOLLY_HAVE_CLOCK_GETTIME 1
33
34 #cmakedefine FOLLY_HAVE_IFUNC 1
35 #cmakedefine FOLLY_HAVE_STD__IS_TRIVIALLY_COPYABLE 1
36 #cmakedefine FOLLY_HAVE_UNALIGNED_ACCESS 1
37 #cmakedefine FOLLY_HAVE_VLA 1
38 #cmakedefine FOLLY_HAVE_WEAK_SYMBOLS 1
39
40 #define FOLLY_VERSION "${PACKAGE_VERSION}"
41
42 //#define FOLLY_HAVE_LIBLZ4 1
43 //#define FOLLY_HAVE_LIBLZMA 1
44 //#define FOLLY_HAVE_LIBSNAPPY 1
45 //#define FOLLY_HAVE_LIBZ 1
46 //#define FOLLY_HAVE_LIBZSTD 1