HAL_SITL: fixed cygwin build

cygwin does not handle panic being weak, it gets a link error
This commit is contained in:
Andrew Tridgell 2021-10-03 10:48:12 +11:00
parent c15221fd53
commit 9a29f2558c
1 changed files with 4 additions and 0 deletions

View File

@ -25,7 +25,11 @@ void init()
gettimeofday(&state.start_time, nullptr);
}
#if defined(__CYGWIN__) || defined(__CYGWIN64__) || defined(CYGWIN_BUILD)
void panic(const char *errormsg, ...)
#else
void WEAK panic(const char *errormsg, ...)
#endif
{
va_list ap;