Force usage of get_win_section_{start,stop} on cygwin

This commit is contained in:
Snaipe 2015-08-19 17:48:08 -07:00
parent 5550801a2e
commit d052330c21
2 changed files with 2 additions and 2 deletions

View file

@ -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));

View file

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