| commit | 4781419a7b7c59c095e5ce0ec8d8f47233c38f7f | [log] [tgz] |
|---|---|---|
| author | Wan-Teh Chang <wtc@google.com> | Tue Feb 06 14:28:56 2024 -0800 |
| committer | Wan-Teh Chang <wtc@google.com> | Wed Feb 07 12:13:30 2024 -0800 |
| tree | 700ea041db0029f4a2a7abc619f1a33ff9448ee5 | |
| parent | e3eaabb14f2446d84610717a0eec42a3568706d3 [diff] |
Do not include stdint.h if inttypes.h is included inttypes.h is documented to include stdint.h, so we can depend on that. https://en.wikibooks.org/wiki/C_Programming/inttypes.h https://cplusplus.com/reference/cinttypes/ https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/inttypes.h.html
diff --git a/src/read.c b/src/read.c index 9c8e13f..f09855c 100644 --- a/src/read.c +++ b/src/read.c
@@ -7,7 +7,6 @@ #include <inttypes.h> #include <limits.h> #include <math.h> -#include <stdint.h> #include <stdio.h> #include <string.h>
diff --git a/src/stream.c b/src/stream.c index 3b61f9f..6a0617d 100644 --- a/src/stream.c +++ b/src/stream.c
@@ -5,7 +5,6 @@ #include <assert.h> #include <inttypes.h> -#include <stdint.h> #include <stdlib.h> #include <string.h>
diff --git a/tests/avifyuv.c b/tests/avifyuv.c index 6fe1618..743f674 100644 --- a/tests/avifyuv.c +++ b/tests/avifyuv.c
@@ -4,7 +4,6 @@ #include "avif/avif.h" #include <inttypes.h> -#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h>