Add Include Guards
This commit is contained in:
parent
3823279856
commit
257cd65412
@ -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
|
||||
|
@ -1,3 +1,8 @@
|
||||
#ifndef UTILS_H
|
||||
#define UTILS_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
uint32_t char_to_uint32(unsigned char *input);
|
||||
|
||||
#endif
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user