]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
build: Assume stdint.h is provided
authorSimon McVittie <smcv@collabora.com>
Tue, 19 Jul 2022 19:44:58 +0000 (20:44 +0100)
committerSimon McVittie <smcv@collabora.com>
Tue, 19 Jul 2022 20:11:09 +0000 (21:11 +0100)
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>
cmake/ConfigureChecks.cmake
cmake/config.h.cmake
configure.ac
dbus/dbus-hash.h
dbus/dbus-pipe.h
dbus/dbus-sysdeps.h
meson.build

index 3d4e0f2beb8e46ad0380fe33a3d969d8e85b7f0c..6ce8520410a30b8ead2245d6f4130987746a351b 100644 (file)
@@ -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)
index 8899214931e92997b5d44afd3794ae9f15b9cf52..b8d98fb2f91ecc172bcb2cf0b32add32cd05ec4b 100644 (file)
 /* 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
 
index 73ca1d23c15fdfca0890ceaf272d9f5f14ef90a7..238b1ac5c62e453a329d880c1f5d26639cf5a333 100644 (file)
@@ -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
index ea6fef0d49f44c288687d92a1eec12aeb7c84e45..dc36633a719d10bd97471106eb4f365221214004 100644 (file)
@@ -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>
index 637d29ea4e5015218ba9fab61c33a84b1bd945c1..a0ff072b4ae6edf54111c864060a66c8e5ef5070 100644 (file)
@@ -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>
index 5270a5dec11af31fc6b0edcf09c9abdf03038d93..7023ea71682fc2a06dbc3d8fdf932750116ff1ed 100644 (file)
@@ -30,9 +30,7 @@
 #include "config.h"
 #endif
 
-#ifdef HAVE_STDINT_H
 #include <stdint.h>
-#endif
 
 #ifdef HAVE_INTTYPES_H
 #include <inttypes.h>
index a97e90cf1ed177514286484b01ffd5ca48f747a3..c6dbb578fea5e3a0b9fec2dc55f04c9a93a14806 100644 (file)
@@ -617,7 +617,6 @@ check_headers = [
     'linux/close_range.h',
     'locale.h',
     'signal.h',
-    'stdint.h',
     'syslog.h',
     'sys/prctl.h',
     'sys/random.h',