Displaying 2 results from an estimated 2 matches for "getdate_err".
2019 Jan 18
1
Re: [PATCH nbdkit 1/2] include: Fix NBDKIT_HANDLE_NOT_NEEDED for C90 compilers.
...time.
>
> Hmm, how about optind?
<getopt.h> is not portable, and I'm not sure if <unistd.h> universally
declares optind. gnulib states that MSVC 14 lacks <unistd.h>.
Other POSIX standardized global variables:
environ (but no standardized header declares it)
daylight, getdate_err, timezone, tzname (<time.h>, but both marked XSI
so not necessarily on all platforms)
optarg, opterr, optopt (<unistd.h>, same boat as optind)
signgam (<math.h>, but marked XSI, and requires -lm on some platforms)
stdin, stdout, stderr (<stdio.h>)
Also, pulling in the addre...
2019 Jan 18
2
Re: [PATCH nbdkit 1/2] include: Fix NBDKIT_HANDLE_NOT_NEEDED for C90 compilers.
On 1/14/19 6:15 AM, Richard W.M. Jones wrote:
> When an ANSI/C90 plugin compiled with ‘-pedantic’ uses
> NBDKIT_HANDLE_NOT_NEEDED it gets the error:
>
> ISO C forbids conversion of function pointer to object pointer type
While POSIX requires it to work. But such is life.
>
> This is because the existing macro worked by returning a function
> pointer but in C90 function