Merge pull request #3824 from orestisfl/ac_replace_funcs

Use AC_REPLACE_FUNCS
This commit is contained in:
Michael Stapelberg
2019-12-25 12:27:21 +01:00
committed by GitHub
6 changed files with 6 additions and 57 deletions

View File

@ -341,8 +341,7 @@ gchar *g_utf8_make_valid(const gchar *str, gssize len);
*/
uint32_t get_colorpixel(const char *hex) __attribute__((const));
#if defined(__APPLE__)
#ifndef HAVE_strndup
/**
* Taken from FreeBSD
* Returns a pointer to a new string which is a duplicate of the
@ -350,7 +349,6 @@ uint32_t get_colorpixel(const char *hex) __attribute__((const));
*
*/
char *strndup(const char *str, size_t n);
#endif
/**
@ -528,7 +526,7 @@ char *resolve_tilde(const char *path);
*/
char *get_config_path(const char *override_configpath, bool use_system_paths);
#if !defined(__sun)
#ifndef HAVE_mkdirp
/**
* Emulates mkdir -p (creates any missing folders)
*

View File

@ -124,17 +124,6 @@ bool path_exists(const char *path);
*/
void i3_restart(bool forget_layout);
#if defined(__OpenBSD__) || defined(__APPLE__)
/**
* Taken from FreeBSD
* Find the first occurrence of the byte string s in byte string l.
*
*/
void *memmem(const void *l, size_t l_len, const void *s, size_t s_len);
#endif
/**
* Escapes the given string if a pango font is currently used.
* If the string has to be escaped, the input string will be free'd.