Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Fix #ifndef statements: HAVE_ variables are all upper case
Browse files Browse the repository at this point in the history
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
  • Loading branch information
stapelberg committed Apr 30, 2020
1 parent 10646eb commit 5ee7690
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/libi3.h
Expand Up @@ -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
Expand Down Expand Up @@ -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)
*
Expand Down
2 changes: 1 addition & 1 deletion libi3/mkdirp.c
Expand Up @@ -12,7 +12,7 @@
#include <string.h>
#include <sys/stat.h>

#ifndef HAVE_mkdirp
#ifndef HAVE_MKDIRP
/*
* Emulates mkdir -p (creates any missing folders)
*
Expand Down
2 changes: 1 addition & 1 deletion libi3/strndup.c
Expand Up @@ -9,7 +9,7 @@

#include <string.h>

#ifndef HAVE_strndup
#ifndef HAVE_STRNDUP
/*
* Taken from FreeBSD
* Returns a pointer to a new string which is a duplicate of the
Expand Down

0 comments on commit 5ee7690

Please sign in to comment.