summaryrefslogtreecommitdiffstats
path: root/src/util/u_string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/u_string.h')
-rw-r--r--src/util/u_string.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/util/u_string.h b/src/util/u_string.h
index 751ae909e1b..b43c42650e1 100644
--- a/src/util/u_string.h
+++ b/src/util/u_string.h
@@ -50,12 +50,9 @@
extern "C" {
#endif
-#ifdef _GNU_SOURCE
-
-#define util_strchrnul strchrnul
-
-#else
+#ifndef _GNU_SOURCE
+#define strchrnul util_strchrnul
static inline char *
util_strchrnul(const char *s, char c)
{