diff options
author | Simon McVittie <smcv@collabora.com> | 2022-07-19 20:44:58 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2022-07-19 21:11:09 +0100 |
commit | 98eff5513ea8a3523c05a93abd28d64a89e6fb80 (patch) | |
tree | 3b7b8835ab5e445e2fb53130fa7ae360e705cf92 | |
parent | 36038fb1263c64a58b439e43a19d9d164d366601 (diff) | |
download | dbus-98eff5513ea8a3523c05a93abd28d64a89e6fb80.tar.gz |
build: Assume stdint.h is provided
We now require a (mostly-)C99 compiler, meaning we can rely on having
Standard C stdint.h.
Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r-- | cmake/ConfigureChecks.cmake | 1 | ||||
-rw-r--r-- | cmake/config.h.cmake | 3 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | dbus/dbus-hash.h | 2 | ||||
-rw-r--r-- | dbus/dbus-pipe.h | 2 | ||||
-rw-r--r-- | dbus/dbus-sysdeps.h | 2 | ||||
-rw-r--r-- | meson.build | 1 |
7 files changed, 0 insertions, 12 deletions
diff --git a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake index 3d4e0f2b..6ce85204 100644 --- a/cmake/ConfigureChecks.cmake +++ b/cmake/ConfigureChecks.cmake @@ -17,7 +17,6 @@ check_include_file(io.h HAVE_IO_H) # internal check_include_file(linux/close_range.h HAVE_LINUX_CLOSE_RANGE_H) check_include_file(locale.h HAVE_LOCALE_H) check_include_file(signal.h HAVE_SIGNAL_H) -check_include_file(stdint.h HAVE_STDINT_H) # dbus-pipe.h check_include_file(stdio.h HAVE_STDIO_H) # dbus-sysdeps.h check_include_file(syslog.h HAVE_SYSLOG_H) check_include_files("stdint.h;sys/types.h;sys/event.h" HAVE_SYS_EVENT_H) diff --git a/cmake/config.h.cmake b/cmake/config.h.cmake index 88992149..b8d98fb2 100644 --- a/cmake/config.h.cmake +++ b/cmake/config.h.cmake @@ -114,9 +114,6 @@ /* Define to 1 if you have signal.h */ #cmakedefine HAVE_SIGNAL_H 1 -/* Define to 1 if you have stdint.h */ -#cmakedefine HAVE_STDINT_H 1 - /* Define to 1 if you have stdio.h */ #cmakedefine HAVE_STDIO_H 1 diff --git a/configure.ac b/configure.ac index 73ca1d23..238b1ac5 100644 --- a/configure.ac +++ b/configure.ac @@ -419,7 +419,6 @@ errno.h linux/close_range.h locale.h signal.h -stdint.h sys/prctl.h sys/random.h sys/resource.h diff --git a/dbus/dbus-hash.h b/dbus/dbus-hash.h index ea6fef0d..dc36633a 100644 --- a/dbus/dbus-hash.h +++ b/dbus/dbus-hash.h @@ -24,9 +24,7 @@ #ifndef DBUS_HASH_H #define DBUS_HASH_H -#ifdef HAVE_STDINT_H #include <stdint.h> -#endif #ifdef HAVE_INTTYPES_H #include <inttypes.h> diff --git a/dbus/dbus-pipe.h b/dbus/dbus-pipe.h index 637d29ea..a0ff072b 100644 --- a/dbus/dbus-pipe.h +++ b/dbus/dbus-pipe.h @@ -25,9 +25,7 @@ #ifndef DBUS_PIPE_H #define DBUS_PIPE_H -#ifdef HAVE_STDINT_H #include <stdint.h> -#endif #ifdef HAVE_INTTYPES_H #include <inttypes.h> diff --git a/dbus/dbus-sysdeps.h b/dbus/dbus-sysdeps.h index 5270a5de..7023ea71 100644 --- a/dbus/dbus-sysdeps.h +++ b/dbus/dbus-sysdeps.h @@ -30,9 +30,7 @@ #include "config.h" #endif -#ifdef HAVE_STDINT_H #include <stdint.h> -#endif #ifdef HAVE_INTTYPES_H #include <inttypes.h> diff --git a/meson.build b/meson.build index a97e90cf..c6dbb578 100644 --- a/meson.build +++ b/meson.build @@ -617,7 +617,6 @@ check_headers = [ 'linux/close_range.h', 'locale.h', 'signal.h', - 'stdint.h', 'syslog.h', 'sys/prctl.h', 'sys/random.h', |