mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 15:10:28 +00:00
Add #include guards to zealbooter library files using ifndef and endif.
This commit is contained in:
parent
a3cec6b618
commit
eac6284cea
3 changed files with 12 additions and 0 deletions
|
@ -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…
Reference in a new issue