From ecc3941c6d2a61ef6c5034440a6f1c1350065685 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 25 Dec 2019 15:02:36 +0200 Subject: [PATCH] Add missing header guards. --- blur.h | 4 ++++ mediancut.h | 4 ++++ nearest.h | 6 ++++++ 3 files changed, 14 insertions(+) diff --git a/blur.h b/blur.h index 06ae8cb..1e77819 100644 --- a/blur.h +++ b/blur.h @@ -1,4 +1,8 @@ +#ifndef BLUR_H +#define BLUR_H LIQ_PRIVATE void liq_blur(unsigned char *src, unsigned char *tmp, unsigned char *dst, unsigned int width, unsigned int height, unsigned int size); LIQ_PRIVATE void liq_max3(unsigned char *src, unsigned char *dst, unsigned int width, unsigned int height); LIQ_PRIVATE void liq_min3(unsigned char *src, unsigned char *dst, unsigned int width, unsigned int height); + +#endif diff --git a/mediancut.h b/mediancut.h index d97696c..9a4cb53 100644 --- a/mediancut.h +++ b/mediancut.h @@ -1,2 +1,6 @@ +#ifndef MEDIANCUT_H +#define MEDIANCUT_H LIQ_PRIVATE colormap *mediancut(histogram *hist, unsigned int newcolors, const double target_mse, const double max_mse, void* (*malloc)(size_t), void (*free)(void*)); + +#endif diff --git a/nearest.h b/nearest.h index e20233b..10a0a2c 100644 --- a/nearest.h +++ b/nearest.h @@ -2,7 +2,13 @@ // nearest.h // pngquant // + +#ifndef NEAREST_H +#define NEAREST_H + struct nearest_map; LIQ_PRIVATE struct nearest_map *nearest_init(const colormap *palette); LIQ_PRIVATE unsigned int nearest_search(const struct nearest_map *map, const f_pixel *px, const int palette_index_guess, float *diff); LIQ_PRIVATE void nearest_free(struct nearest_map *map); + +#endif