C++11 guarantees <cstddef> and <cstdint>.
The build configuration can be cleaned up a bit.
This commit is contained in:
@@ -19,8 +19,6 @@ test_big_endian(SNAPPY_IS_BIG_ENDIAN)
|
||||
|
||||
include(CheckIncludeFile)
|
||||
check_include_file("byteswap.h" HAVE_BYTESWAP_H)
|
||||
check_include_file("stddef.h" HAVE_STDDEF_H)
|
||||
check_include_file("stdint.h" HAVE_STDINT_H)
|
||||
check_include_file("sys/endian.h" HAVE_SYS_ENDIAN_H)
|
||||
check_include_file("sys/mman.h" HAVE_SYS_MMAN_H)
|
||||
check_include_file("sys/resource.h" HAVE_SYS_RESOURCE_H)
|
||||
@@ -90,15 +88,7 @@ configure_file(
|
||||
# We don't want to define HAVE_ macros in public headers. Instead, we use
|
||||
# CMake's variable substitution with 0/1 variables, which will be seen by the
|
||||
# preprocessor as constants.
|
||||
set(HAVE_STDINT_H_01 ${HAVE_STDINT_H})
|
||||
set(HAVE_STDDEF_H_01 ${HAVE_STDDEF_H})
|
||||
set(HAVE_SYS_UIO_H_01 ${HAVE_SYS_UIO_H})
|
||||
if(NOT HAVE_STDINT_H_01)
|
||||
set(HAVE_STDINT_H_01 0)
|
||||
endif(NOT HAVE_STDINT_H_01)
|
||||
if(NOT HAVE_STDDEF_H_01)
|
||||
set(HAVE_STDDEF_H_01 0)
|
||||
endif(NOT HAVE_STDDEF_H_01)
|
||||
if(NOT HAVE_SYS_UIO_H_01)
|
||||
set(HAVE_SYS_UIO_H_01 0)
|
||||
endif(NOT HAVE_SYS_UIO_H_01)
|
||||
|
||||
Reference in New Issue
Block a user