mirror of
https://github.com/pine64/blisp.git
synced 2025-03-13 10:28:57 +00:00
Pragma -> ifndef
This commit is contained in:
parent
dbd7ee2257
commit
c87a4a092c
@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
#ifndef PARSE_FILE_H_
|
||||
#define PARSE_FILE_H_
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "parsed_firmware_file.h"
|
||||
@ -19,3 +20,5 @@ int parse_firmware_file(const char* file_path_on_disk,
|
||||
// Internal util
|
||||
ssize_t get_file_contents(const char* file_path_on_disk,
|
||||
uint8_t** file_contents);
|
||||
|
||||
#endif // PARSE_FILE_H_
|
||||
|
@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
#ifndef PARSED_FIRMWARE_H_
|
||||
#define PARSED_FIRMWARE_H_
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
@ -13,3 +14,4 @@ typedef struct {
|
||||
size_t payload_length; // Size of the payload
|
||||
size_t payload_address; // Start address of the payload
|
||||
} parsed_firmware_file_t;
|
||||
#endif // PARSED_FIRMWARE_H_
|
||||
|
Loading…
Reference in New Issue
Block a user