mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 03:38:06 +02:00
util: Define strchrnul on macOS.
strchrnul is not available on macOS.
pipe_loader.c:141:14: error: implicit declaration of function 'strchrnul' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
next = strchrnul(library_paths, ':');
^
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Acked-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
parent
52af1427c6
commit
4771f6bccc
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
#if !defined(_GNU_SOURCE) || defined(__APPLE__)
|
||||
|
||||
#define strchrnul util_strchrnul
|
||||
static inline char *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue