From d052330c21d2daccbad0bb5eff1357bc364a8bb6 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Wed, 19 Aug 2015 17:48:08 -0700 Subject: [PATCH] Force usage of get_win_section_{start,stop} on cygwin --- src/posix-compat.c | 2 +- src/posix-compat.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/posix-compat.c b/src/posix-compat.c index 037a0aa..4cb7a28 100644 --- a/src/posix-compat.c +++ b/src/posix-compat.c @@ -327,7 +327,7 @@ bool is_current_process(s_proc_handle *proc) { #endif } -#ifdef VANILLA_WIN32 +#ifdef _WIN32 void *get_win_section_start(const char *section) { PIMAGE_DOS_HEADER dosHeader = (PIMAGE_DOS_HEADER) GetModuleHandle(NULL); PIMAGE_NT_HEADERS ntHeader = ntHeader = (PIMAGE_NT_HEADERS) ((DWORD)(dosHeader) + (dosHeader->e_lfanew)); diff --git a/src/posix-compat.h b/src/posix-compat.h index fa4f87d..84a5aef 100644 --- a/src/posix-compat.h +++ b/src/posix-compat.h @@ -76,7 +76,7 @@ void wait_process(s_proc_handle *handle, int *status); s_proc_handle *get_current_process(); bool is_current_process(s_proc_handle *proc); -# ifdef VANILLA_WIN32 +# ifdef _WIN32 void *get_win_section_start(const char *section); void *get_win_section_end(const char *section); # define CR_STRINGIFY_(Param) #Param