mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2025-06-07 08:14:48 +00:00
Add #include guards to zealbooter library files using ifndef and endif.
This commit is contained in:
parent
a3cec6b618
commit
eac6284cea
@ -1,3 +1,6 @@
|
||||
#ifndef __LIB_H__
|
||||
#define __LIB_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include <memcpy.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);
|
||||
|
||||
typedef char symbol[];
|
||||
|
||||
#endif // __LIB_H__
|
||||
|
@ -1,4 +1,8 @@
|
||||
#ifndef __MEMCPY_H__
|
||||
#define __MEMCPY_H__
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
void *memcpy(void *s1, const void *s2, size_t n);
|
||||
|
||||
#endif // __MEMCPY_H__
|
||||
|
@ -1,3 +1,6 @@
|
||||
#ifndef __PRINT_H__
|
||||
#define __PRINT_H__
|
||||
|
||||
int printf(const char *format, ...);
|
||||
|
||||
#endif // __PRINT_H__
|
||||
|
Loading…
x
Reference in New Issue
Block a user