Codebase list i3-gaps / 5ee7690
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 Michael Stapelberg 4 years ago
3 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
346346 */
347347 uint32_t get_colorpixel(const char *hex) __attribute__((const));
348348
349 #ifndef HAVE_strndup
349 #ifndef HAVE_STRNDUP
350350 /**
351351 * Taken from FreeBSD
352352 * Returns a pointer to a new string which is a duplicate of the
531531 */
532532 char *get_config_path(const char *override_configpath, bool use_system_paths);
533533
534 #ifndef HAVE_mkdirp
534 #ifndef HAVE_MKDIRP
535535 /**
536536 * Emulates mkdir -p (creates any missing folders)
537537 *
1111 #include <string.h>
1212 #include <sys/stat.h>
1313
14 #ifndef HAVE_mkdirp
14 #ifndef HAVE_MKDIRP
1515 /*
1616 * Emulates mkdir -p (creates any missing folders)
1717 *
88
99 #include <string.h>
1010
11 #ifndef HAVE_strndup
11 #ifndef HAVE_STRNDUP
1212 /*
1313 * Taken from FreeBSD
1414 * Returns a pointer to a new string which is a duplicate of the