util: Fix strndup prototype on C++.

Trivial.
This commit is contained in:
Jose Fonseca 2015-09-29 16:01:22 +01:00
parent c0722be9f5
commit 952366a60e
2 changed files with 10 additions and 1 deletions

View file

@ -23,6 +23,7 @@
#if defined(_WIN32)
#include <stdlib.h>
#include <string.h>
#include "strndup.h"
char *

View file

@ -27,6 +27,14 @@
#if defined(_WIN32)
extern char *strndup(const char *str, size_t max);
#ifdef __cplusplus
extern "C" {
#endif
char *strndup(const char *str, size_t max);
#ifdef __cplusplus
}
#endif
#endif