amputate checking for __int64
Since everything supports stdint.h this days.
This commit is contained in:
parent
92718aaaeb
commit
0c11d35f4a
|
@ -167,7 +167,6 @@ check_c_source_compiles("#include <stdlib.h>
|
|||
int main() { return 0; }"
|
||||
HAVE___ATTRIBUTE__)
|
||||
|
||||
check_type_size("__int64" __INT64 LANGUAGE CXX) # defined in some windows platforms
|
||||
set(CMAKE_EXTRA_INCLUDE_FILES "malloc.h")
|
||||
check_type_size("struct mallinfo" STRUCT_MALLINFO LANGUAGE CXX)
|
||||
set(CMAKE_EXTRA_INCLUDE_FILES "elf.h")
|
||||
|
|
|
@ -223,9 +223,6 @@
|
|||
/* Define to 1 if compiler supports __environ */
|
||||
#cmakedefine HAVE___ENVIRON
|
||||
|
||||
/* Define to 1 if the system has the type `__int64'. */
|
||||
#cmakedefine HAVE___INT64
|
||||
|
||||
/* Define to 1 if you have the `__sbrk' function. */
|
||||
#cmakedefine HAVE___SBRK
|
||||
|
||||
|
|
|
@ -195,7 +195,6 @@ AC_MSG_RESULT($ac_cv___attribute__aligned_fn)
|
|||
AC_HEADER_STDC
|
||||
|
||||
# TODO(csilvers): we could remove a lot when WITH_CPU_PROFILER etc is "no".
|
||||
AC_CHECK_TYPES([__int64]) # defined in some windows platforms
|
||||
AC_CHECK_TYPES([struct mallinfo],,, [#include <malloc.h>])
|
||||
AC_CHECK_TYPES([Elf32_Versym],,, [#include <elf.h>]) # for vdso_support.h
|
||||
AC_CHECK_FUNCS(sbrk) # for tcmalloc to get memory
|
||||
|
|
|
@ -154,9 +154,7 @@
|
|||
/* #undef HAVE_SCHED_H */
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#if defined(_MSC_VER) && _MSC_VER >= 1900
|
||||
#define HAVE_STDINT_H 1
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#define HAVE_STDLIB_H 1
|
||||
|
@ -224,9 +222,6 @@
|
|||
/* Define to 1 if compiler supports __environ */
|
||||
/* #undef HAVE___ENVIRON */
|
||||
|
||||
/* Define to 1 if the system has the type `__int64'. */
|
||||
#define HAVE___INT64 1
|
||||
|
||||
/* Define to 1 if you have the `__sbrk' function. */
|
||||
/* #undef HAVE___SBRK */
|
||||
|
||||
|
|
|
@ -102,20 +102,9 @@
|
|||
/* ----------------------------------- BASIC TYPES */
|
||||
|
||||
#ifndef HAVE_STDINT_H
|
||||
#ifndef HAVE___INT64 /* we need to have all the __intX names */
|
||||
# error Do not know how to set up type aliases. Edit port.h for your system.
|
||||
#endif
|
||||
|
||||
typedef __int8 int8_t;
|
||||
typedef __int16 int16_t;
|
||||
typedef __int32 int32_t;
|
||||
typedef __int64 int64_t;
|
||||
typedef unsigned __int8 uint8_t;
|
||||
typedef unsigned __int16 uint16_t;
|
||||
typedef unsigned __int32 uint32_t;
|
||||
typedef unsigned __int64 uint64_t;
|
||||
#endif /* #ifndef HAVE_STDINT_H */
|
||||
|
||||
/* I guess MSVC's <types.h> doesn't include ssize_t by default? */
|
||||
#ifdef _MSC_VER
|
||||
typedef intptr_t ssize_t;
|
||||
|
|
Loading…
Reference in New Issue