Sunday, 29 March 2020

Re: libnslog: portability fixes for plan9

On 2020-03-22, ori@eigenstate.org <ori@eigenstate.org> wrote:
> diff -urN a/include/nslog/nslog.h b/include/nslog/nslog.h
> --- a/include/nslog/nslog.h Sun Feb 23 01:49:32 2020
> +++ b/include/nslog/nslog.h Sun Mar 22 18:08:23 2020
> @@ -17,6 +17,13 @@
>
> #include <stdarg.h>
>
> +#if defined(__GNUC__)
> +# define PRINTF(fmt, args) __attribute__ ((format (printf, 2, 3)))

Did you mean `#define PRINTF(pos, args) __attribute__ ((format
(printf, pos, args)))` here?

> +#elif defined(_PLAN9)
> +# pragma varargck nslog__log argpos 2
> +# define PRINTF(pos, args)
> +

No comments:

Post a Comment