Skip to content

Commit f3ba898

Browse files
eukarpovgithub-actions
authored andcommitted
Add temporary workaround for undefined uintptr_t on aarch64-pc-cygwin
1 parent a5a2fa0 commit f3ba898

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mingw-w64-headers/crt/corecrt.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,17 @@ typedef __time64_t time_t;
151151
#endif
152152
#endif
153153

154+
/* A temporary workaround.
155+
uintptr_t is not defined on *-*-cygwin targets.
156+
The issue should be investigated and properly resolved. */
157+
#if !defined (__CYGWIN__)
154158
#ifdef _DEBUG
155159
_CRTIMP void __cdecl _invalid_parameter(const wchar_t *expression, const wchar_t *function_name, const wchar_t *file_name, unsigned int line_number, uintptr_t reserved);
156160
#endif
157161
_CRTIMP void __cdecl _invalid_parameter_noinfo(void);
158162
_CRTIMP __MINGW_ATTRIB_NORETURN void __cdecl _invalid_parameter_noinfo_noreturn(void);
159163
_CRTIMP __MINGW_ATTRIB_NORETURN void __cdecl _invoke_watson(const wchar_t *expression, const wchar_t *function_name, const wchar_t *file_name, unsigned int line_number, uintptr_t reserved);
164+
#endif
160165

161166
#if defined(__cplusplus) && _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES
162167

0 commit comments

Comments
 (0)