From 189052cd581eb58c9c20a9b848f4f8b439005a5d Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sat, 7 Jan 2017 02:12:45 +1100 Subject: [PATCH] Hopefully fix build for everyone - someone please work out a way to make the bgfx examples build on platforms with/without the POSIX 2008 strnlen function (nw) --- 3rdparty/bgfx/3rdparty/tinyexr/tinyexr.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/3rdparty/bgfx/3rdparty/tinyexr/tinyexr.h b/3rdparty/bgfx/3rdparty/tinyexr/tinyexr.h index 4482b82602f..38ac53c66eb 100644 --- a/3rdparty/bgfx/3rdparty/tinyexr/tinyexr.h +++ b/3rdparty/bgfx/3rdparty/tinyexr/tinyexr.h @@ -7076,8 +7076,7 @@ static const char *ReadString(std::string *s, const char *ptr) { static bool ReadAttribute(std::string *name, std::string *type, std::vector *data, size_t *marker_size, const char *marker, size_t size) { - using namespace bx; - size_t name_len = strnlen(marker, size); + size_t name_len = bx::strnlen(marker, size); if (name_len == size) { // String does not have a terminating character. return false; @@ -7087,7 +7086,7 @@ static bool ReadAttribute(std::string *name, std::string *type, marker += name_len + 1; size -= name_len + 1; - size_t type_len = strnlen(marker, size); + size_t type_len = bx::strnlen(marker, size); if (type_len == size) { return false; }