bug-gnulib
[Top][All Lists]
Advanced

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

Re: timespec_get: Fix compilation error with MSVC 14


From: Paul Eggert
Subject: Re: timespec_get: Fix compilation error with MSVC 14
Date: Sun, 4 Sep 2022 21:37:25 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

On 9/4/22 17:00, Bruno Haible wrote:
But I am lazy here, as 'timespec_get' is usually not the kind of function
that people will call from an extern inline function.

timespec_get is so new that I wouldn't expect it to be called from anywhere. Still, this business of "static inline" for standard functions is trouble, as I have run into problems with that sort of thing elsewhere.

How about something like the attached patch? It's just a stab at fixing the bug (since I can't test it), but I can polish it if this sort of thing would work. As part of the polish, the MSVC timespec_get bug should be documented in the Gnulib manual.

Attachment: timespec_get.diff
Description: Text Data


reply via email to

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