summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2017-01-07 02:12:45 +1100
committer Vas Crabb <vas@vastheman.com>2017-01-07 02:12:45 +1100
commit189052cd581eb58c9c20a9b848f4f8b439005a5d (patch)
tree8d38f0061fa1bffe9dd0ab9d978d7fa27a4099d5 /3rdparty
parentb2a66f5f5dfa09ef04256f7ab47b106fdacfbf22 (diff)
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)
Diffstat (limited to '3rdparty')
-rw-r--r--3rdparty/bgfx/3rdparty/tinyexr/tinyexr.h5
1 files 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<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;
}