mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 16:18:06 +02:00
util: Fix strndup prototype on C++.
Trivial.
This commit is contained in:
parent
c0722be9f5
commit
952366a60e
2 changed files with 10 additions and 1 deletions
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#if defined(_WIN32)
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "strndup.h"
|
||||
|
||||
char *
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue