Skip to content

Commit 1aa8391

Browse files
committed
inject: Fix MinGW cross-compilation errors on Ubuntu 20.04.
1 parent 88c8ce0 commit 1aa8391

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

inject/injectee_iat.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,17 @@ _assert(const char *_Message, const char *_File, unsigned _Line)
9090
}
9191

9292

93+
#ifndef __MINGW32__
94+
9395
EXTERN_C void
9496
_wassert(const wchar_t * _Message, const wchar_t *_File, unsigned _Line)
9597
{
9698
debugPrintf("Assertion failed: %S, file %S, line %u\n", _Message, _File, _Line);
9799
TerminateProcess(GetCurrentProcess(), 1);
98100
}
99101

102+
#endif /* !__MINGW32__ */
103+
100104

101105
static HMODULE WINAPI
102106
MyLoadLibraryA(LPCSTR lpLibFileName);

inject/injectee_mhook.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,17 @@ _assert(const char *_Message, const char *_File, unsigned _Line)
144144
}
145145

146146

147+
#ifndef __MINGW32__
148+
147149
EXTERN_C void
148150
_wassert(const wchar_t * _Message, const wchar_t *_File, unsigned _Line)
149151
{
150152
debugPrintf("Assertion failed: %S, file %S, line %u\n", _Message, _File, _Line);
151153
TerminateProcess(GetCurrentProcess(), 1);
152154
}
153155

156+
#endif /* !__MINGW32__ */
157+
154158

155159
static void
156160
MyCreateProcessCommon(BOOL bRet,

0 commit comments

Comments
 (0)