From d6e02b8ff5da79d895197a3a1c4839e1047d6c57 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 15 Aug 2019 19:43:49 +0000 Subject: perk.h: eliminate #include's of referential headers. The primary purpose of this commit is to eliminate the pulling in of definitions not strictly needed by perk.h. In particular, perk.h does not require any of the PE constants to be defined, and only refers to the raw PE structs by pointer. The secondary purpose of this commit is to allow for inclusion of perk.h by software that already comes with its own set of PE const and struct definitions. --- src/reader/pe_read_coff_header.c | 2 ++ src/reader/pe_read_coff_symbol.c | 2 ++ src/reader/pe_read_dos_header.c | 2 ++ src/reader/pe_read_export_header.c | 2 ++ src/reader/pe_read_import_header.c | 2 ++ src/reader/pe_read_optional_header.c | 2 ++ src/reader/pe_read_section_header.c | 2 ++ 7 files changed, 14 insertions(+) (limited to 'src/reader') diff --git a/src/reader/pe_read_coff_header.c b/src/reader/pe_read_coff_header.c index d431191..e6b97f8 100644 --- a/src/reader/pe_read_coff_header.c +++ b/src/reader/pe_read_coff_header.c @@ -7,6 +7,8 @@ #include #include +#include +#include #include "perk_endian_impl.h" #include "perk_reader_impl.h" diff --git a/src/reader/pe_read_coff_symbol.c b/src/reader/pe_read_coff_symbol.c index 0bb8897..3394a26 100644 --- a/src/reader/pe_read_coff_symbol.c +++ b/src/reader/pe_read_coff_symbol.c @@ -7,6 +7,8 @@ #include #include +#include +#include #include "perk_endian_impl.h" #include "perk_reader_impl.h" diff --git a/src/reader/pe_read_dos_header.c b/src/reader/pe_read_dos_header.c index f9864be..ac5054b 100644 --- a/src/reader/pe_read_dos_header.c +++ b/src/reader/pe_read_dos_header.c @@ -7,6 +7,8 @@ #include #include +#include +#include #include "perk_endian_impl.h" #include "perk_reader_impl.h" diff --git a/src/reader/pe_read_export_header.c b/src/reader/pe_read_export_header.c index bea1493..221c9cb 100644 --- a/src/reader/pe_read_export_header.c +++ b/src/reader/pe_read_export_header.c @@ -7,6 +7,8 @@ #include #include +#include +#include #include "perk_endian_impl.h" #include "perk_reader_impl.h" diff --git a/src/reader/pe_read_import_header.c b/src/reader/pe_read_import_header.c index 08d1130..720b30a 100644 --- a/src/reader/pe_read_import_header.c +++ b/src/reader/pe_read_import_header.c @@ -7,6 +7,8 @@ #include #include +#include +#include #include "perk_endian_impl.h" #include "perk_reader_impl.h" diff --git a/src/reader/pe_read_optional_header.c b/src/reader/pe_read_optional_header.c index feab0ab..ab6a7d5 100644 --- a/src/reader/pe_read_optional_header.c +++ b/src/reader/pe_read_optional_header.c @@ -7,6 +7,8 @@ #include #include +#include +#include #include "perk_endian_impl.h" #include "perk_reader_impl.h" diff --git a/src/reader/pe_read_section_header.c b/src/reader/pe_read_section_header.c index 3c90d7e..00bc034 100644 --- a/src/reader/pe_read_section_header.c +++ b/src/reader/pe_read_section_header.c @@ -7,6 +7,8 @@ #include #include +#include +#include #include "perk_endian_impl.h" #include "perk_reader_impl.h" -- cgit v1.2.3