WIN32: fix roken build

__declspec not _declspec

Include "err.h" not <err.h>

Include "roken.h" before "err.h"

Indent "#if" as "# if" within roken.h.in when CPP rules must be copied
into the generated "roken.h".

Correct verr() attribute to be ROKEN_LIB_NORETURN_FUNCTION.

Change-Id: I4289ecaba4a097175b4a5a1cde529b59038c72e3
This commit is contained in:
Jeffrey Altman
2019-01-21 22:04:06 -05:00
parent 18226819cd
commit 3bbd8663b0
5 changed files with 10 additions and 8 deletions

View File

@@ -36,7 +36,7 @@
#include "roken.h"
#include <err.h>
ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL
ROKEN_LIB_NORETURN_FUNCTION void ROKEN_LIB_CALL
verr(int eval, const char *fmt, va_list ap)
{
rk_warnerr(1, fmt, ap);