diff --git a/src/mutex.cpp b/src/mutex.cpp index d0b61c3..5ba7036 100644 --- a/src/mutex.cpp +++ b/src/mutex.cpp @@ -11,7 +11,8 @@ || BX_PLATFORM_LINUX \ || BX_PLATFORM_NACL \ || BX_PLATFORM_IOS \ - || BX_PLATFORM_OSX + || BX_PLATFORM_OSX \ + || BX_PLATFORM_PS4 # include #elif BX_PLATFORM_WINDOWS \ || BX_PLATFORM_WINRT \ diff --git a/src/string.cpp b/src/string.cpp index 3c81700..7d0cf7f 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -143,7 +143,7 @@ namespace bx const char* ptr = _str; for (; 0 < _max && *ptr != '\0'; ++ptr, --_max) {}; - return ptr - _str; + return int32_t(ptr - _str); } int32_t strlncpy(char* _dst, int32_t _dstSize, const char* _src, int32_t _num) diff --git a/src/thread.cpp b/src/thread.cpp index 0937405..30e1187 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -9,7 +9,8 @@ || BX_PLATFORM_LINUX \ || BX_PLATFORM_NACL \ || BX_PLATFORM_IOS \ - || BX_PLATFORM_OSX + || BX_PLATFORM_OSX \ + || BX_PLATFORM_PS4 # include # if defined(__FreeBSD__) # include