diff options
author | François Revol <revol@free.fr> | 2014-08-15 21:22:37 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-16 06:51:13 +0200 |
commit | 40280fa6cf7dc1e45724c3e965e1eeab03b3994e (patch) | |
tree | 5ac6313ee9dc038c79dbfe1e45b6ca63809a4fd7 /src/util/ASCII.hxx | |
parent | fe9299ceffcd9164a50214aee287fbf8e85dcd9f (diff) | |
download | mpd-40280fa6cf7dc1e45724c3e965e1eeab03b3994e.tar.gz mpd-40280fa6cf7dc1e45724c3e965e1eeab03b3994e.tar.xz mpd-40280fa6cf7dc1e45724c3e965e1eeab03b3994e.zip |
util: Fix header for strcasecmp
According to POSIX and both OSX and Linux manpages,
strcasecmp comes from strings.h, not string.h.
Most OSes also have them available in string.h,
but we just fixed the headers on Haiku and it now
only provides them in strings.h.
We might want to fall back to string.h for other
OSes though...
cf.
http://pubs.opengroup.org/onlinepubs/009695399/functions/strcasecmp.html
http://linux.die.net/man/3/strcasecmp
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/strcasecmp.3.html
Diffstat (limited to '')
-rw-r--r-- | src/util/ASCII.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/ASCII.hxx b/src/util/ASCII.hxx index adea6dceb..19a18a1bb 100644 --- a/src/util/ASCII.hxx +++ b/src/util/ASCII.hxx @@ -33,7 +33,7 @@ #include "Compiler.h" #include <assert.h> -#include <string.h> +#include <strings.h> /** * Determine whether two strings are equal, ignoring case for ASCII |