aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-04-11 17:50:41 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-04-11 17:51:19 +0200
commitb407e9290c6ce2ef69f4949f0cb04f8be3770eea (patch)
treeffaa17f1ae16fd2dc07d11ee530bb9d4cce248e0
parent7530c6411b64c8a4a7790240315628ea94c7a6ba (diff)
downloadvis-b407e9290c6ce2ef69f4949f0cb04f8be3770eea.tar.gz
vis-b407e9290c6ce2ef69f4949f0cb04f8be3770eea.tar.xz
text: do not redefine _GNU_SOURCE
Fix #536
-rw-r--r--text.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/text.c b/text.c
index 134d507..bc0be04 100644
--- 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>