Re: [hatari-devel] build fails on cirrus-ci for visualstudio target |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] build fails on cirrus-ci for visualstudio target
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Sun, 27 Oct 2024 09:49:02 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1730022543; bh=prVdkW+42nL+PiTxlDDQw8VMGkAsZvgm5x7xhmM35aA=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=BwrscvaN7psP3nfErKR1WlyY4yWQjOW9Aj13tIv7jRtIvuGEw/WKrzvtXJJ+nhL+f SH5KONvclHcJrSEAHyPwIrAsDsV5tyx2UWesoxFBq2edNk4p6x86iOX/liVKkzlElh 31yiN5KvfeAprsAPukl2oQIZZDSvv5S6SZi4aNbmRtkdT8/h82U+YR/FS704u4+2yr GtuXge0kpPdg2uNERIbwXl2NXl5ygE/N6AkAxHe9P0h04HYQYMjQRKNgivyTuXslZ3 SdirSVnAiVk/ISAJMqSFQgYZwfJMYXTlIXlYuC5C1pCCIq58Oh7kt4afLHhWbhDvdJ YsGrWAzyK/VPA==
Am Mon, 21 Oct 2024 14:14:05 +0200
schrieb Nicolas Pomarède <npomarede@xxxxxxxxxxxx>:
> Le 21/10/2024 à 12:31, Christian Zietz a écrit :
> > Hi,
> > I think the attribution to the breaking commit is wrong. As far as I can
> > see, Cirrus CI did not run on what (probably) is the real breaking commit:
> > https://github.com/hatari/hatari/commit/a22de5759741eaf8c6bf95ff7a0e128d516a11e5 <https://github.com/hatari/hatari/commit/a22de5759741eaf8c6bf95ff7a0e128d516a11e5>
> > Afaik, strtok*_r* is not available in Visual C's runtime library.
> > However, strtok*_s* achieves a similar goal.
>
> Hi
>
> yes, strtok_s seems to be the alternative ; this thread discuss it :
>
> https://stackoverflow.com/questions/9021502/whats-the-difference-between-strtok-r-and-strtok-s-in-c
>
> One possible change could be this :
>
> #ifdef _MSC_VER
> #define strtok_r strtok_s
> #endif
>
>
> In all cases it's not recommanded to rely on _WIN32 define because
> cygwin defines it but it uses strtok_r, not _s
Hi,
we've got a special header dedicated for fixes like this:
src/includes/vs-fix.h ... I've now added the #define there and this seems
to fix the problem, indeed.
Thomas