Branimir Karadžić 8 years ago
parent
commit
65f728c0ce
3 changed files with 5 additions and 3 deletions
  1. 2 1
      src/mutex.cpp
  2. 1 1
      src/string.cpp
  3. 2 1
      src/thread.cpp

+ 2 - 1
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 <pthread.h>
 #elif  BX_PLATFORM_WINDOWS \
 	|| BX_PLATFORM_WINRT   \

+ 1 - 1
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)

+ 2 - 1
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 <pthread.h>
 #	if defined(__FreeBSD__)
 #		include <pthread_np.h>