Pragma -> ifndef

This commit is contained in:
Ben V. Brown 2023-08-01 21:36:39 +10:00
parent dbd7ee2257
commit c87a4a092c
2 changed files with 8 additions and 3 deletions

View File

@ -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"
@ -18,4 +19,6 @@ 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);
uint8_t** file_contents);
#endif // PARSE_FILE_H_

View File

@ -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_