vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 0ee3c0aeefa8d9791acd9d27cc1ecf05d9bfae58 parent e57f400e2d1a022a8043b385fb24e0840f60765b Author: Marc André Tanner <mat@brain-dump.org> Date: Tue, 11 Apr 2017 17:50:41 +0200 text: do not redefine _GNU_SOURCE Fix #536 Diffstat:
| M | text.c | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/text.c b/text.c @@ -1,4 +1,6 @@ -#define _GNU_SOURCE // memrchr(3) is non-standard +#ifndef _GNU_SOURCE +#define _GNU_SOURCE /* memrchr(3) is non-standard */ +#endif #include <unistd.h> #include <stdio.h> #include <stdlib.h>