string_util.c: provide fallback strndup() implementation

This patch also adds extern "C" { } wrapper around string_util.h
to allow its usage in C++ code
This commit is contained in:
Denis Krjuchkov
2013-01-11 13:51:39 +06:00
parent 631a268996
commit a98aa66620
4 changed files with 50 additions and 0 deletions

View File

@@ -21,6 +21,7 @@
#define MPD_OPUS_READER_HXX
#include "check.h"
#include "string_util.h"
#include <stdint.h>
#include <string.h>