Add #include guards to zealbooter library files using ifndef and endif.

This commit is contained in:
TomAwezome 2022-09-08 17:46:29 -04:00
parent a3cec6b618
commit eac6284cea
3 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,6 @@
#ifndef __LIB_H__
#define __LIB_H__
#include <stdint.h> #include <stdint.h>
#include <memcpy.h> #include <memcpy.h>
#include <print.h> #include <print.h>
@ -6,3 +9,5 @@ uint64_t div_roundup_u64(uint64_t a, uint64_t b);
uint64_t align_up_u64(uint64_t a, uint64_t b); uint64_t align_up_u64(uint64_t a, uint64_t b);
typedef char symbol[]; typedef char symbol[];
#endif // __LIB_H__

View file

@ -1,4 +1,8 @@
#ifndef __MEMCPY_H__
#define __MEMCPY_H__
#include <stddef.h> #include <stddef.h>
void *memcpy(void *s1, const void *s2, size_t n); void *memcpy(void *s1, const void *s2, size_t n);
#endif // __MEMCPY_H__

View file

@ -1,3 +1,6 @@
#ifndef __PRINT_H__
#define __PRINT_H__
int printf(const char *format, ...); int printf(const char *format, ...);
#endif // __PRINT_H__