aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test-wchar.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-08-15 02:15:52 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-08-15 02:15:52 +0000
commit72b08051834f48e51407e7cebe8719cc5b6555a3 (patch)
treee68b559eae1648423af5c990f0c5ed0467ac2880 /test-wchar.c
parent239614951577ba74078ca14afdba3508fb622fcb (diff)
downloadmandoc-72b08051834f48e51407e7cebe8719cc5b6555a3.tar.gz
mandoc-72b08051834f48e51407e7cebe8719cc5b6555a3.tar.zst
mandoc-72b08051834f48e51407e7cebe8719cc5b6555a3.zip
Autodetect whether _GNU_SOURCE or _OPENBSD_SOURCE are needed; the
latter is a NetBSD idiosyncrasy reported by wiz@. Also take into account that NetBSD declares getsubopt(3) in the wrong header.
Diffstat (limited to 'test-wchar.c')
-rw-r--r--test-wchar.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/test-wchar.c b/test-wchar.c
index 32962d9f..7095d8ba 100644
--- a/test-wchar.c
+++ b/test-wchar.c
@@ -1,4 +1,4 @@
-/* $Id: test-wchar.c,v 1.4 2016/07/31 09:29:13 schwarze Exp $ */
+/* $Id: test-wchar.c,v 1.5 2018/08/15 02:15:52 schwarze Exp $ */
/*
* Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -15,10 +15,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#if defined(__linux__) || defined(__MINT__)
-#define _GNU_SOURCE /* wcwidth() */
-#endif
-
#include <locale.h>
#include <stdio.h>
#include <wchar.h>