From 3093d1480b0998ac2bcdf0367fb86f6abfabee16 Mon Sep 17 00:00:00 2001 From: Kurt Schwehr Date: Fri, 31 Aug 2018 04:01:07 -0700 Subject: [PATCH] Remove HAVE_STDINT_H (fixes #4). C99 is now required. Therefore HAVE_STDINT_H is no longer necessary. --- CMakeLists.txt | 1 - cmake/config.h.in | 1 - src/decode.h | 4 +--- src/encode.h | 4 +--- src/encode_accessors.c | 5 +---- src/encode_accessors.h | 4 +--- 6 files changed, 4 insertions(+), 15 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e05c322..ee76ab8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,6 @@ set(CMAKE_BUILD_TYPE Release) enable_testing() check_include_files(malloc.h HAVE_MALLOC_H) -check_include_files(stdint.h HAVE_STDINT_H) test_big_endian(WORDS_BIGENDIAN) check_clzll(HAVE_DECL___BUILTIN_CLZLL) if(NOT HAVE_DECL___BUILTIN_CLZLL) diff --git a/cmake/config.h.in b/cmake/config.h.in index d5783e0..e87bb50 100644 --- a/cmake/config.h.in +++ b/cmake/config.h.in @@ -1,5 +1,4 @@ #cmakedefine HAVE_MALLOC_H 1 -#cmakedefine HAVE_STDINT_H 1 #cmakedefine WORDS_BIGENDIAN 1 #cmakedefine HAVE_DECL___BUILTIN_CLZLL 1 #cmakedefine HAVE_BSR64 1 diff --git a/src/decode.h b/src/decode.h index 78cdbcb..d747080 100644 --- a/src/decode.h +++ b/src/decode.h @@ -53,9 +53,7 @@ #include -#if HAVE_STDINT_H -# include -#endif +#include #define M_CONTINUE 1 #define M_EXIT 0 diff --git a/src/encode.h b/src/encode.h index 9622c44..8653ab3 100644 --- a/src/encode.h +++ b/src/encode.h @@ -53,9 +53,7 @@ #include -#if HAVE_STDINT_H -# include -#endif +#include #define M_CONTINUE 1 #define M_EXIT 0 diff --git a/src/encode_accessors.c b/src/encode_accessors.c index a3ef9b9..7b0595a 100644 --- a/src/encode_accessors.c +++ b/src/encode_accessors.c @@ -49,10 +49,7 @@ #include -#if HAVE_STDINT_H -# include -#endif - +#include #include #include "libaec.h" #include "encode.h" diff --git a/src/encode_accessors.h b/src/encode_accessors.h index 55a6993..68180a6 100644 --- a/src/encode_accessors.h +++ b/src/encode_accessors.h @@ -52,9 +52,7 @@ #include "config.h" -#if HAVE_STDINT_H -# include -#endif +#include uint32_t aec_get_8(struct aec_stream *strm); uint32_t aec_get_lsb_16(struct aec_stream *strm); -- GitLab