From 303aecb074f1dd4ed8c897d94c3737cc58e84b92 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 4 Oct 2020 09:04:05 -0700 Subject: [PATCH] lib/utils.c: improve header include order Don't assume that lib_common.h and libdeflate.h don't include . Currently this change doesn't matter unless someone uses -DFREESTANDING for a Windows build, which isn't supported anyway, but we might as well clean this up. Update https://github.com/ebiggers/libdeflate/pull/68 --- lib/utils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/utils.c b/lib/utils.c index 9378713..a076d82 100644 --- a/lib/utils.c +++ b/lib/utils.c @@ -25,6 +25,10 @@ * OTHER DEALINGS IN THE SOFTWARE. */ +#include "lib_common.h" + +#include "libdeflate.h" + #ifdef FREESTANDING # define malloc NULL # define free NULL @@ -32,10 +36,6 @@ # include #endif -#include "lib_common.h" - -#include "libdeflate.h" - static void *(*libdeflate_malloc_func)(size_t) = malloc; static void (*libdeflate_free_func)(void *) = free;