libcdio-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libcdio-devel] a few small windows fixes


From: Rocky Bernstein
Subject: Re: [Libcdio-devel] a few small windows fixes
Date: Sat, 25 Nov 2017 16:52:58 -0500

Thanks for reporting and patching. The patches have been applied in both
dev and master git branches now.

Please submit future patches via
https://savannah.gnu.org/patch/?group=libcdio

Thanks.

On Sat, Nov 25, 2017 at 7:55 AM, Ozkan Sezer <address@hidden> wrote:

> On 11/25/17, Ozkan Sezer <address@hidden> wrote:
> > See the attached three patches:
> >
> >
> > #1: fix mixed declarations and code in win32_ioctl.c:
> >
> > lib/driver/MSWindows/win32_ioctl.c: In function
> > 'audio_play_msf_win32ioctl':
> > lib/driver/MSWindows/win32_ioctl.c:193:3: warning: ISO C90 forbids
> > mixed declarations and code
> >
> >
> > #2: fix 'strndup shadows a built-in function' warnings:
> >
> > if strndup() is not available, the build log is plagued with the
> > following warnings:
> > lib/driver/cdio_private.h:46:21: warning: declaration of 'strndup'
> > shadows a built-in function
> >
> > So, rename the replacement inline strndup to libcdio_strdup, and
> > define strndup as libcdio_strndup.
> >
> >
> > #3: do not use sleep() for windows.
> >
> > _sleep() has long been deprecated and no longer prototyped in stdlib.h,
> > despite the fact that msvcrt.dll still exports it. therefore, undefine
> > HAVE_SLEEP when targeting windows, use Sleep win32 api function instead.
>
> The list archive doesn't contain the attached patches. Some ridiculous
> filter ate them??  Re-attaching them after renaming *.patch to *.txt,
> maybe they arrive this time..
>
> --
> O.S.
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]