The #if predicate evaluates to false if the macro is undefined, or defined to 0. #ifdef (and its synonym #if defined) evaluates to false only if the macro is undefined. The new setup allows differentiating between setting a macro to 0 (to express that the capability definitely does not exist / should not be used) and leaving a macro undefined (to express not knowing whether a capability exists / not caring if a capability is used). PiperOrigin-RevId: 391094241
57 lines
1.9 KiB
C
57 lines
1.9 KiB
C
#ifndef THIRD_PARTY_SNAPPY_OPENSOURCE_CMAKE_CONFIG_H_
|
|
#define THIRD_PARTY_SNAPPY_OPENSOURCE_CMAKE_CONFIG_H_
|
|
|
|
/* Define to 1 if the compiler supports __attribute__((always_inline)). */
|
|
#cmakedefine01 HAVE_ATTRIBUTE_ALWAYS_INLINE
|
|
|
|
/* Define to 1 if the compiler supports __builtin_ctz and friends. */
|
|
#cmakedefine01 HAVE_BUILTIN_CTZ
|
|
|
|
/* Define to 1 if the compiler supports __builtin_expect. */
|
|
#cmakedefine01 HAVE_BUILTIN_EXPECT
|
|
|
|
/* Define to 1 if you have a definition for mmap() in <sys/mman.h>. */
|
|
#cmakedefine01 HAVE_FUNC_MMAP
|
|
|
|
/* Define to 1 if you have a definition for sysconf() in <unistd.h>. */
|
|
#cmakedefine01 HAVE_FUNC_SYSCONF
|
|
|
|
/* Define to 1 if you have the `lzo2' library (-llzo2). */
|
|
#cmakedefine01 HAVE_LIBLZO2
|
|
|
|
/* Define to 1 if you have the `z' library (-lz). */
|
|
#cmakedefine01 HAVE_LIBZ
|
|
|
|
/* Define to 1 if you have the `lz4' library (-llz4). */
|
|
#cmakedefine01 HAVE_LIBLZ4
|
|
|
|
/* Define to 1 if you have the <sys/mman.h> header file. */
|
|
#cmakedefine01 HAVE_SYS_MMAN_H
|
|
|
|
/* Define to 1 if you have the <sys/resource.h> header file. */
|
|
#cmakedefine01 HAVE_SYS_RESOURCE_H
|
|
|
|
/* Define to 1 if you have the <sys/time.h> header file. */
|
|
#cmakedefine01 HAVE_SYS_TIME_H
|
|
|
|
/* Define to 1 if you have the <sys/uio.h> header file. */
|
|
#cmakedefine01 HAVE_SYS_UIO_H
|
|
|
|
/* Define to 1 if you have the <unistd.h> header file. */
|
|
#cmakedefine01 HAVE_UNISTD_H
|
|
|
|
/* Define to 1 if you have the <windows.h> header file. */
|
|
#cmakedefine01 HAVE_WINDOWS_H
|
|
|
|
/* Define to 1 if you target processors with SSSE3+ and have <tmmintrin.h>. */
|
|
#cmakedefine01 SNAPPY_HAVE_SSSE3
|
|
|
|
/* Define to 1 if you target processors with BMI2+ and have <bmi2intrin.h>. */
|
|
#cmakedefine01 SNAPPY_HAVE_BMI2
|
|
|
|
/* Define to 1 if your processor stores words with the most significant byte
|
|
first (like Motorola and SPARC, unlike Intel and VAX). */
|
|
#cmakedefine01 SNAPPY_IS_BIG_ENDIAN
|
|
|
|
#endif // THIRD_PARTY_SNAPPY_OPENSOURCE_CMAKE_CONFIG_H_
|