Permalink
Browse files

Hopefully fix build for everyone - someone please work out a way to m…

…ake the bgfx examples build on platforms with/without the POSIX 2008 strnlen function (nw)
  • Loading branch information...
1 parent b2a66f5 commit 189052cd581eb58c9c20a9b848f4f8b439005a5d @cuavas cuavas committed Jan 6, 2017
Showing with 2 additions and 3 deletions.
  1. +2 −3 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<unsigned char> *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;
}

0 comments on commit 189052c

Please sign in to comment.