crt: Mark internal mingw-w64 function _FindPESection as static This function is used only in the pesect.c file. Signed-off-by: LIU Hao <lh_mouse@126.com>
diff --git a/mingw-w64-crt/crt/pesect.c b/mingw-w64-crt/crt/pesect.c index 20389e0..85b2213 100644 --- a/mingw-w64-crt/crt/pesect.c +++ b/mingw-w64-crt/crt/pesect.c
@@ -29,9 +29,7 @@ return TRUE; } -PIMAGE_SECTION_HEADER _FindPESection (PBYTE, DWORD_PTR); - -PIMAGE_SECTION_HEADER +static PIMAGE_SECTION_HEADER _FindPESection (PBYTE pImageBase, DWORD_PTR rva) { PIMAGE_NT_HEADERS pNTHeader;
diff --git a/mingw-w64-crt/include/internal.h b/mingw-w64-crt/include/internal.h index a01f704..ab75000 100644 --- a/mingw-w64-crt/include/internal.h +++ b/mingw-w64-crt/include/internal.h
@@ -142,7 +142,6 @@ #include <errno.h> BOOL __cdecl _ValidateImageBase (PBYTE pImageBase); - PIMAGE_SECTION_HEADER __cdecl _FindPESection (PBYTE pImageBase, DWORD_PTR rva); #if defined(__SSE__) # define __mingw_has_sse() 1