| Index: src/shared/platform/osx/strnlen_osx.c
|
| diff --git a/src/shared/platform/osx/strnlen_osx.c b/src/shared/platform/osx/strnlen_osx.c
|
| deleted file mode 100644
|
| index 159e4f432965fe168e9d2c0b4c07669e9812f207..0000000000000000000000000000000000000000
|
| --- a/src/shared/platform/osx/strnlen_osx.c
|
| +++ /dev/null
|
| @@ -1,20 +0,0 @@
|
| -/*
|
| - * Copyright 2008 The Native Client Authors. All rights reserved.
|
| - * Use of this source code is governed by a BSD-style license that can be
|
| - * found in the LICENSE file.
|
| - */
|
| -
|
| -
|
| -#include <sys/stat.h>
|
| -#include <sys/types.h>
|
| -
|
| -#include <fcntl.h>
|
| -#include <string.h>
|
| -#include <unistd.h>
|
| -
|
| -size_t strnlen(const char* string, size_t max);
|
| -
|
| -size_t strnlen(const char* string, size_t max) {
|
| - const char* end = (const char*)memchr(string, '\0', max);
|
| - return end ? (size_t)(end - string) : max;
|
| -}
|
|
|