summaryrefslogtreecommitdiff
path: root/lib/libc/endian
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/endian')
-rw-r--r--lib/libc/endian/be16toh.c3
-rw-r--r--lib/libc/endian/be32toh.c3
-rw-r--r--lib/libc/endian/be64toh.c3
-rw-r--r--lib/libc/endian/htobe16.c3
-rw-r--r--lib/libc/endian/htobe32.c3
-rw-r--r--lib/libc/endian/htobe64.c3
-rw-r--r--lib/libc/endian/htole16.c3
-rw-r--r--lib/libc/endian/htole32.c3
-rw-r--r--lib/libc/endian/htole64.c3
-rw-r--r--lib/libc/endian/le16toh.c3
-rw-r--r--lib/libc/endian/le32toh.c3
-rw-r--r--lib/libc/endian/le64toh.c3
12 files changed, 24 insertions, 12 deletions
diff --git a/lib/libc/endian/be16toh.c b/lib/libc/endian/be16toh.c
index 40793f93..9a5e8ff3 100644
--- a/lib/libc/endian/be16toh.c
+++ b/lib/libc/endian/be16toh.c
@@ -1,4 +1,5 @@
-#include <endian.h>
+#include <endian.h> // for be16toh
+#include <stdint.h> // for uint16_t
uint16_t be16toh(uint16_t big_endian_16bits)
{
diff --git a/lib/libc/endian/be32toh.c b/lib/libc/endian/be32toh.c
index bc7d4900..d87c9f58 100644
--- a/lib/libc/endian/be32toh.c
+++ b/lib/libc/endian/be32toh.c
@@ -1,4 +1,5 @@
-#include <endian.h>
+#include <endian.h> // for be32toh
+#include <stdint.h> // for uint32_t
uint32_t be32toh(uint32_t big_endian_32bits)
{
diff --git a/lib/libc/endian/be64toh.c b/lib/libc/endian/be64toh.c
index c52cc8a6..6ccdb175 100644
--- a/lib/libc/endian/be64toh.c
+++ b/lib/libc/endian/be64toh.c
@@ -1,4 +1,5 @@
-#include <endian.h>
+#include <endian.h> // for be64toh
+#include <stdint.h> // for uint64_t
uint64_t be64toh(uint64_t big_endian_64bits)
{
diff --git a/lib/libc/endian/htobe16.c b/lib/libc/endian/htobe16.c
index bb66595f..915296f3 100644
--- a/lib/libc/endian/htobe16.c
+++ b/lib/libc/endian/htobe16.c
@@ -1,4 +1,5 @@
-#include <endian.h>
+#include <endian.h> // for htobe16
+#include <stdint.h> // for uint16_t
uint16_t htobe16(uint16_t host_16bits)
{
diff --git a/lib/libc/endian/htobe32.c b/lib/libc/endian/htobe32.c
index 4e294a82..378c6c20 100644
--- a/lib/libc/endian/htobe32.c
+++ b/lib/libc/endian/htobe32.c
@@ -1,4 +1,5 @@
-#include <endian.h>
+#include <endian.h> // for htobe32
+#include <stdint.h> // for uint32_t
uint32_t htobe32(uint32_t host_32bits)
{
diff --git a/lib/libc/endian/htobe64.c b/lib/libc/endian/htobe64.c
index ef39de6a..54a363c8 100644
--- a/lib/libc/endian/htobe64.c
+++ b/lib/libc/endian/htobe64.c
@@ -1,4 +1,5 @@
-#include <endian.h>
+#include <endian.h> // for htobe64
+#include <stdint.h> // for uint64_t
uint64_t htobe64(uint64_t host_64bits)
{
diff --git a/lib/libc/endian/htole16.c b/lib/libc/endian/htole16.c
index c5b1caa7..9bdd1675 100644
--- a/lib/libc/endian/htole16.c
+++ b/lib/libc/endian/htole16.c
@@ -1,4 +1,5 @@
-#include <endian.h>
+#include <endian.h> // for htole16
+#include <stdint.h> // for uint16_t
uint16_t htole16(uint16_t host_16bits)
{
diff --git a/lib/libc/endian/htole32.c b/lib/libc/endian/htole32.c
index 6c9a3cdc..bf4771bd 100644
--- a/lib/libc/endian/htole32.c
+++ b/lib/libc/endian/htole32.c
@@ -1,4 +1,5 @@
-#include <endian.h>
+#include <endian.h> // for htole32
+#include <stdint.h> // for uint32_t
uint32_t htole32(uint32_t host_32bits)
{
diff --git a/lib/libc/endian/htole64.c b/lib/libc/endian/htole64.c
index 36af0bea..acd2fb14 100644
--- a/lib/libc/endian/htole64.c
+++ b/lib/libc/endian/htole64.c
@@ -1,4 +1,5 @@
-#include <endian.h>
+#include <endian.h> // for htole64
+#include <stdint.h> // for uint64_t
uint64_t htole64(uint64_t host_64bits)
{
diff --git a/lib/libc/endian/le16toh.c b/lib/libc/endian/le16toh.c
index ea85b5f6..620be0c1 100644
--- a/lib/libc/endian/le16toh.c
+++ b/lib/libc/endian/le16toh.c
@@ -1,4 +1,5 @@
-#include <endian.h>
+#include <endian.h> // for le16toh
+#include <stdint.h> // for uint16_t
uint16_t le16toh(uint16_t little_endian_16bits)
{
diff --git a/lib/libc/endian/le32toh.c b/lib/libc/endian/le32toh.c
index f85f0f94..c053c1b2 100644
--- a/lib/libc/endian/le32toh.c
+++ b/lib/libc/endian/le32toh.c
@@ -1,4 +1,5 @@
-#include <endian.h>
+#include <endian.h> // for le32toh
+#include <stdint.h> // for uint32_t
uint32_t le32toh(uint32_t little_endian_32bits)
{
diff --git a/lib/libc/endian/le64toh.c b/lib/libc/endian/le64toh.c
index 4f2cb5fc..409863f2 100644
--- a/lib/libc/endian/le64toh.c
+++ b/lib/libc/endian/le64toh.c
@@ -1,4 +1,5 @@
-#include <endian.h>
+#include <endian.h> // for le64toh
+#include <stdint.h> // for uint64_t
uint64_t le64toh(uint64_t little_endian_64bits)
{