Add Include Guards

This commit is contained in:
Pedro Portela 2025-06-10 07:22:49 +02:00
parent 3823279856
commit 257cd65412
3 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,6 @@
#ifndef IMAGE_H
#define IMAGE_H
#include <stdint.h>
typedef struct {
@ -8,3 +11,5 @@ typedef struct {
} image_t;
void free_image(image_t* img);
#endif

View File

@ -1,3 +1,8 @@
#ifndef UTILS_H
#define UTILS_H
#include <stdint.h>
uint32_t char_to_uint32(unsigned char *input);
#endif

View File

@ -1,7 +1,9 @@
#ifndef IMG_PNG_H
#define IMG_PNG_H
#include <stdint.h>
#include <stdio.h>
struct img_png_chunk {
unsigned char* chunk_data;
uint32_t length;
@ -10,3 +12,5 @@ struct img_png_chunk {
};
uint8_t* img_png_decode (FILE* fp);
#endif