diff options
author | Thomas Haller <thaller@redhat.com> | 2020-09-24 13:34:46 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-09-30 09:49:20 +0200 |
commit | b019950eafd0ca513cb8e873331efda5db8d83c9 (patch) | |
tree | ccbc9cd03e7e0d9f429c4e5cc7f1b5b0b3165c5f | |
parent | d9ca728005a59b6bbf3573d1feab846f6728f9ab (diff) | |
download | NetworkManager-b019950eafd0ca513cb8e873331efda5db8d83c9.tar.gz |
shared: include "stdint.h" in our base headers
While we often use and prefer the glib typedefs (like guint32), there
are places where we want to use the fixed width integer types from C99.
In particular, next we will introduce typedefs like nm_le64_t for
integers in different endianness.
Also, here we are about "nm-std-aux", so the glib typedefs are not
available.
I feel a header like <stdint.h> is such a basic C requirement, that
is should just be available to us everywhere.
-rw-r--r-- | shared/nm-std-aux/nm-std-aux.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shared/nm-std-aux/nm-std-aux.h b/shared/nm-std-aux/nm-std-aux.h index 98ccf53503..374d91f2c2 100644 --- a/shared/nm-std-aux/nm-std-aux.h +++ b/shared/nm-std-aux/nm-std-aux.h @@ -6,6 +6,7 @@ #include <assert.h> #include <string.h> #include <stdbool.h> +#include <stdint.h> #include <unistd.h> #include <stdio.h> #include <errno.h> |