From 5ee7690af3416edf1a62acb2cc2a04dc98e1e7fb Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 30 Apr 2020 18:16:54 +0200 Subject: [PATCH] Fix #ifndef statements: HAVE_ variables are all upper case The autoconf manual states: define HAVE_function (in all capitals) if it is available https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Generic-Functions.html#Generic-Functions Thanks to @sur5r for the report --- include/libi3.h | 4 ++-- libi3/mkdirp.c | 2 +- libi3/strndup.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/libi3.h b/include/libi3.h index d9c89ddd5..85a8afe32 100644 --- a/include/libi3.h +++ b/include/libi3.h @@ -347,7 +347,7 @@ gchar *g_utf8_make_valid(const gchar *str, gssize len); */ uint32_t get_colorpixel(const char *hex) __attribute__((const)); -#ifndef HAVE_strndup +#ifndef HAVE_STRNDUP /** * Taken from FreeBSD * Returns a pointer to a new string which is a duplicate of the @@ -532,7 +532,7 @@ char *resolve_tilde(const char *path); */ char *get_config_path(const char *override_configpath, bool use_system_paths); -#ifndef HAVE_mkdirp +#ifndef HAVE_MKDIRP /** * Emulates mkdir -p (creates any missing folders) * diff --git a/libi3/mkdirp.c b/libi3/mkdirp.c index 35a304756..d29bb95b2 100644 --- a/libi3/mkdirp.c +++ b/libi3/mkdirp.c @@ -12,7 +12,7 @@ #include #include -#ifndef HAVE_mkdirp +#ifndef HAVE_MKDIRP /* * Emulates mkdir -p (creates any missing folders) * diff --git a/libi3/strndup.c b/libi3/strndup.c index a0e87cf6e..8911732ce 100644 --- a/libi3/strndup.c +++ b/libi3/strndup.c @@ -9,7 +9,7 @@ #include -#ifndef HAVE_strndup +#ifndef HAVE_STRNDUP /* * Taken from FreeBSD * Returns a pointer to a new string which is a duplicate of the