From e6e331420a7d737bb26d35ecef4180cc569577a4 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 22 Jun 2020 19:20:40 +0000 Subject: Because mandoc_aux.h and mandoc.h use __attribute__, all files that include mandoc_aux.h or mandoc.h need to include config.h, too. It is suspected that for example IRIX needs this, or it is likely to throw errors in these files because the system compiler doesn't understand __attribute__. Issue reported by Kazuo Kuroi . --- mdoc_markdown.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mdoc_markdown.c') diff --git a/mdoc_markdown.c b/mdoc_markdown.c index 65bffea0..1d80ccf7 100644 --- a/mdoc_markdown.c +++ b/mdoc_markdown.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_markdown.c,v 1.35 2020/04/03 11:35:01 schwarze Exp $ */ +/* $Id: mdoc_markdown.c,v 1.36 2020/06/22 19:20:40 schwarze Exp $ */ /* * Copyright (c) 2017, 2018, 2020 Ingo Schwarze * @@ -16,6 +16,8 @@ * * Markdown formatter for mdoc(7) used by mandoc(1). */ +#include "config.h" + #include #include -- cgit v1.2.3